[英]How can I iterate tests with different values in robot framework with python
I need to iterate whole test suit depending on the list passed through command line.我需要根据通过命令行传递的列表迭代整个测试套件。
Suite Setup Data Set Up ABC.json ${A} ${B} sanity
Default Tags sanity
*** Variables ***
@{list} set variable
*** Test Cases ***
test_001_ABC_test_one
Run ABC one
test_002_ABC_test_two
Run ABC two
test_003_ABC_test_three
Run ABC three
test_004_ABC_test_four
Run ABC four
test_005_ABC_test_five
Run ABC five
I want this 5 tests should iterate for the number of items present in the @{List} and everytime it should pass that item of the list to the test case.我希望这 5 个测试应该迭代 @{List} 中存在的项目数,并且每次都应该将列表的该项目传递给测试用例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.