【发布时间】:2014-10-11 02:04:54
【问题描述】:
我有一个像这样的测试套件“my_test_suite.robot”:
*** Test Cases ***
Test Case 1
Log Test 1
Test Case 2
Log Test 2
然后我像这样运行 pybot 命令两次:
pybot --timestampoutputs my_test_suite.robot
所以我收到了两次报告。现在,我运行 rebot 命令如下:
rebot --name RebotCombined *.xml
它生成了简洁的组合 report.html 文件,其中高级测试套件是 RebotCombined 和两个与“我的测试套件”同名的子测试套件。即,
RebotCombined
|
--- My Test Suite
| |
| --- Test Case 1
| --- Test Case 2
--- My Test Suite
| |
| --- Test Case 1
| --- Test Case 2
但我期待的是:
RebotCombined
|
--- My Test Suite
| |
| --- Test Case 1
| --- Test Case 1
| --- Test Case 2
| --- Test Case 2
我怎样才能做到这一点?
【问题讨论】:
-
在您的场景中,您运行
Test Case 1两次。但是,在“我所期待的”部分中,您只显示了一次列出的测试用例。 rebot 如何决定在合并报告中显示哪个测试用例?或者您真的希望在合并报告中看到两次Test Case 1? -
对不起@BryanOakley,输出有误。现在更新它。
标签: python robotframework