【发布时间】:2021-01-28 07:50:58
【问题描述】:
我正在尝试根据文档添加标签 https://github.com/Snooz82/robotframework-datadriver
这是我的例子:
*** Settings ***
Test Template Template
*** Test Cases *** ${first} ${second} [Tags] [Documentation]
Test1 xxx 111 123
Test2 yyy 222 126
Test3 zzz 333 124
*** Keywords ***
Template
[Arguments] ${first} ${second}
Should be true ${TRUE}
但在这种情况下,我得到了错误:
Keyword 'Template' expected 2 arguments, got 3.
我也看到了这个解决方案:How to Tag Data Driven Template Tests in Robot Framework
但在这种情况下,我无法使用-i test_tag 运行特定测试
【问题讨论】:
标签: tags robotframework data-driven-tests