相关疑难解决方法(0)

从Jenkins Pipeline发布多个机器人测试结果

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

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'
])
Run Code Online (Sandbox Code Playgroud)

}

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

在此输入图像描述

有什么方法可以发布两组Robot结果.

robotframework jenkins-pipeline

5
推荐指数
1
解决办法
4124
查看次数

标签 统计

jenkins-pipeline ×1

robotframework ×1