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

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

问题描述

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

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'
])

}

在用户界面中,我们看到了两个已发布的结果,但是两组都用于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将您的两组Robot结果合并为一个.然后只发布合并的报告. 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管道发布多个机器人测试结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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