【问题标题】:Is it possible to use lists in Data driven Robot Framework tests是否可以在数据驱动的机器人框架测试中使用列表
【发布时间】:2018-11-09 04:38:15
【问题描述】:
*** Settings ***
Resource  resource_file.robot

*** Keywords ***
Test Template Fields
  [Arguments]  ${required_field}  ${optional_field}  ${ignored_field}
  Setup test  ${required_field}  ${optional_field}  ${ignored_field}
  Given Some data I want to test something

*** Test Cases ***
| * Test Case * | * Test Name *   | *Required Field*  | *Optional Field*   | *Ignored Field*                                     |
| 1 Test      | Test Template Fields | A_Required_Field | An_Optional_field | **Ignored_field1  Ignored_field2** |

是否可以在数据驱动测试中将项目列表传递给 Robotframework 关键字? (上表中的Ignored_field1 Ignored_field2

【问题讨论】:

    标签: testing robotframework


    【解决方案1】:
     [Arguments]  ${required_field}  ${optional_field}  @{ignored_field}
    

    将参数作为列表传递!

    【讨论】:

      猜你喜欢
      • 2022-01-16
      • 2018-12-25
      • 1970-01-01
      • 2016-04-16
      • 2021-06-07
      • 2021-06-13
      • 1970-01-01
      • 1970-01-01
      • 2014-05-21
      相关资源
      最近更新 更多