【发布时间】:2020-08-26 18:50:16
【问题描述】:
我有一个如下脚本:
[CCO-XXXXX_4]
[Tags] TEST_CCO-XXXXX
Run Keyword And Continue On Failure Run Test General test.out testProfile mode.out
Run Keyword And Continue On Failure Run Test General test.out testProfile mode.out
想法是运行 2 个具有不同参数的测试用例:
Run Test
[Documentation] Run the suite
[Arguments] ${type} ${profile} ${file} ${test}
When suite config is updated
Then publish test status
Then publish test status
Set Test Message ${LogStr}
Stop Test
[Documentation] Stop Execution of suite
[Arguments] ${FIALUREMSG}
Log To Console ${FIALUREMSG}
Fail ${FIALUREMSG}
问题出在报告中 - 当两次运行的测试都失败时,report 消息中有 2 条单独的单独消息:“This is stop called”
但是当它通过时,只有一个消息日志可用 - 因为上述两个测试用例有两次运行,所以每个单独的测试不可能有与测试相关的消息:[例如“你好,这是一个例子”应该记录两次?]
【问题讨论】:
标签: robotframework