从 Jenkins Pipeline 发布多个机器人测试结果 [英] Publish Multiple Robot Test Results From Jenkins Pipeline

查看:23
本文介绍了从 Jenkins Pipeline 发布多个机器人测试结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行两个独立的机器人测试套件的 Jenkins 2.0 流水线脚本.该脚本尝试发布两个测试套件结果,但是发布者用最后一个发布覆盖了第一个发布.

I have a Jenkins 2.0 Pipeline script that runs a two separate suite of Robot tests. The script tries to publish both test suite results, however the publisher over-writes the first publish, with the last one.

node('robot') {
    ...
    publishTestResults('journey')
    publishTestResults('regression')
}

void publishTestResults(String type) {
step([
        $class           : 'hudson.plugins.robot.RobotPublisher',
        outputPath       : 'portfolio-app\target\robot-output\' + type,
        passThreshold    : 100,
        unstableThreshold: 100,
        otherFiles       : '',
        reportFileName   : '*\report*.html',
        logFileName      : '*\log*.html',
        outputFileName   : '*\output*.xml'
])

}

从 UI 中,我们看到两个已发布的结果,但两个集合都是针对 regression 测试用例的.最后发布者获胜.

From the UI, we see two published results, but both sets are for the regression test cases. The last publish wins.

有什么方法可以发布两组机器人结果.

Is there any way that we can publish two sets of Robot results.

推荐答案

这不会直接回答你的问题,但它是你想要完成的一个可能的解决方案.

This will not answer your question directly, but it is a possible solution to what you are trying to accomplish.

您可以使用 rebot 将两组机器人结果合并为一组.然后发布合并的报告.rebot 有很多关于如何合并报表的选项.

You can use rebot to combine your two sets of Robot results into one. And then just publish the merged report. There are lots of options with rebot on how to merge reports.

这篇关于从 Jenkins Pipeline 发布多个机器人测试结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆