【发布时间】:2020-06-24 17:07:24
【问题描述】:
昨天,我编写并运行了一个 Katalon 测试套件,而今天,我正在尝试将 Katalon 与 Jenkins 集成。我成功设置了 Jenkins,为 Katalon 测试创建了一个新工作,as per these instructions,但是当我去构建它时,我得到了失败的构建。
特别是,这是我不断收到的错误消息:
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
Finished: FAILURE
我继续将 Reports 文件夹结构从我指定的项目目录复制到 Jenkins 工作区。经过后来的检查,我发现,当 Jenkins 运行 Katalon 测试时,JUnit_Report.xml 文件实际上是在项目的Reports 文件夹中创建的,而不是在%JENKINS_HOME%\workspace\[project name]\Reports 中创建的。我明确告诉它生成测试报告到:Reports/LoginSuite/*/JUnit_Report.xml。
注意:我在 Windows 机器上。
如何解决这个问题,以便显示 Jenkins 的测试结果?!
更新:我已将我的 Windows shell 代码修改为以下内容
C:
cd C:\Katalon
katalon -runMode=console -projectPath="C:\Users\mwarren\Katalon Studio\TestProject" -reportFolder="../../.jenkins/workspace/Katalon Studio Tests/Reports" -reportFileName="report" -retry=0 -testSuitePath="Test Suites/LoginSuite" -browserType="Chrome"
它仍然给我同样的错误,即使现在正在那里创建测试。
【问题讨论】:
-
你找到解决方法了吗?我也面临同样的问题。