简体   繁体   English

合并机器人框架测试报告

[英]Combining robot framework test reports

We run the robot framework test cases in a certain order and generate a separate output files for each collection. 我们以一定顺序运行机器人框架测试用例,并为每个集合生成单独的输出文件。 Example is shown below: 示例如下所示:

pabot -L TRACE --output test1.xml robot_framework/tests/test1 pabot -L TRACE-输出test1.xml robot_framework / tests / test1

pabot -L TRACE --output test2.xml robot_framework/tests/test2 pabot -L TRACE-输出test2.xml robot_framework / tests / test2

Later on we use 'rebot' command to combine the test reports as shown below: 稍后,我们使用“ rebot”命令来组合测试报告,如下所示:

rebot test1.xml test2.xml. 改组test1.xml test2.xml。

The issue we are facing is, there is no output.xml file generated. 我们面临的问题是,没有生成output.xml文件。 How can we combine the reports such that there is a 'output.xml' file? 我们如何合并报告,以便有一个“ output.xml”文件? If we do not have this file, the Jenkins plugin for Robot Framework fails to generate report. 如果我们没有此文件,则Robot Framework的Jenkins插件无法生成报告。

You just have to add "--output output.xml" to your rebot command line to have the xml file generated: 您只需要在rebot命令行中添加“ --output output.xml”即可生成xml文件:

rebot --output output.xml test1.xml test2.xml 机器人-输出output.xml test1.xml test2.xml

The Robot Framework Jenkins Plugin can then pick it up. 然后,机器人框架Jenkins插件可以将其拾取。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM