aggregate the reports from different robot testsuites

混江龙づ霸主 提交于 2019-12-18 17:14:20

问题


I have different test suites in different directories. I use a script to run all these tests in one shot. Now I want to view the report of all these test suites in some aggregated way. What is the best way to aggregate these reports of different test suites(from different directories) in robot?


回答1:


Robot comes with a tool called "rebot" for combining test results into a single report.

For example, to combine "output1.xml" and "output2.xml" into a single log and report file, you would do something like this:

rebot output1.xml output2.xml

For more information see Using rebot tool in the robot user guide




回答2:


Thanks. I solved it. For further elaboration

By default, output xml is named as output.xml . To change it to some other name as you mentioned

pybot  --output output1.xml <test_suite> 

then we can use rebot as

rebot --outputdir <directory-you-want-to-have-output-reports> --output <aggregated_xml_name: eg: final_output.xml> output1.xml output2.xml .....


来源:https://stackoverflow.com/questions/16519277/aggregate-the-reports-from-different-robot-testsuites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!