【问题标题】:aggregate the reports from different robot testsuites汇总来自不同机器人测试套件的报告
【发布时间】:2013-05-07 07:45:21
【问题描述】:

我在不同的目录中有不同的测试套件。我使用脚本一次性运行所有这些测试。现在我想以某种聚合方式查看所有这些测试套件的报告。在机器人中汇总这些不同测试套件(来自不同目录)的报告的最佳方法是什么?

【问题讨论】:

    标签: automated-tests robotframework


    【解决方案1】:

    Robot 带有一个名为“rebo​​t”的工具,用于将测试结果合并到一个报告中。

    例如,要将“output1.xml”和“output2.xml”组合成一个日志和报告文件,您可以这样做:

    rebot output1.xml output2.xml
    

    有关更多信息,请参阅robot user guide 中的Using rebot tool

    【讨论】:

      【解决方案2】:

      谢谢。我解决了。 进一步阐述

      默认情况下,输出 xml 被命名为 output.xml 。将其更改为您提到的其他名称

      pybot  --output output1.xml <test_suite> 
      

      那么我们可以使用rebot as

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-11-17
        • 2023-01-03
        • 1970-01-01
        • 2011-09-01
        • 2016-11-14
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多