【发布时间】:2023-03-22 11:42:01
【问题描述】:
我正在使用 Robotframework 并尝试编写一个需要模板和一些关键字的测试用例。下面是我目前正在做的事情。 模板不能在 Settings 中,因为有不同的测试用例,每个用例都有不同的用例。
当尝试运行 TC_003_Edit_Custom_Destination 时,它向我抛出了错误
关键字“创建目标无效场景”预期 4 个参数,得到 1 个。
TC_003_Edit_Custom_Destination
[Documentation] Edit Custom Destination, inside settings tab
[Tags] Testing Edit Custom Destination Functionality
TC_001_Streaming_test_setup other
Cancel create Destination
Click on edit title for new destination created ${destination_title_name}
[Template] Create Destination Invalid Scenarios
${empty} ${empty} ${empty} Please enter an RTMP address
${empty} ${rtmps_address} ${empty} Please enter an stream key
${empty} rtm://google.com 123ABC Invalid Destination
${empty} ${rtmps_address} 123ABC Please give this destination a name
${destination_title_name} ${rtmps_address} 123ABC ${empty}
有谁知道我如何在 TestCase 中添加关键字和测试模板?我不想打包
TC_001_Streaming_test_setup other Cancel create Destination 内 [设置]
____ 更新____
*** Test Cases ***
Test Case with Template
[Template] Template_1
${template_args_1} ${template_args_2}
Some_keywords_1
Some_keywords_2
Some_keywords_3
【问题讨论】:
标签: python templates automation robotframework testcase