需要有关在 Robot Framework 中传递参数和执行多个测试用例的帮助

Need Help regarding passing arguments and executing with multiple test cases in Robot Framework

我的意图是将多个 URL 作为参数传递,方法是在关键字中提供它并调用它作为测试 case.It 应该是多个测试用例的一部分。请帮助我更正代码。

*** settings ***
Library  Selenium2Library
Test Template     My Logging


*** Variables ***   
${Google}              https://www.google.co.in/
${Facebook}            https://www.facebook.com/



*** Test Cases *** 
Login to Google     
   My Logging     ${Google}
   My Logging     ${Facebook}

Login to Google website
    Login to Google



*** Keywords ***
My Logging
  [Arguments]     ${url}
  Open Browser     ${url}     Chrome
  Capture Page Screenshot
  Close Browser

Login to google
    Open Browser     ${Google}      Chrome
    Close Browser

提示错误

Login to Google website                                               | FAIL |
WebDriverException: Message: unknown error: unhandled inspector error: {"code":-32603,"message":"Cannot navigate to invalid U
RL"}

您不能将 Test Template 用于非数据驱动测试。删除此行:

Test Template     My Logging