【发布时间】:2019-04-11 17:06:10
【问题描述】:
我的 Jenkins Job 正在运行以 JAVA 编码的 API 自动化。它以 index.html 的形式生成 Cucumber - Serenity Report。我需要在 HP ALM 中导出/推送测试执行结果以跟踪我在 HP ALM 中的执行结果
通过线程,它谈到了在 Jenkins 中配置 testresult.xml 文件。在我的例子中,它生成 index.html 文件作为 Jenkins 中的测试执行。
跑步者档案:
import cucumber.api.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(monochrome = true, strict = false,
features = "src/test/resources/features/",
glue = { "com.pearson.glp.qe.stepdefinations.assignmentmanagement" },
tags = { "@Regression" }, plugin = { "html:target/cucumber",
"json:target/cucumber.json", "junit:target/cucumber.xml" })
我希望此测试结果能够导出并在 HP ALM 中用于跟踪执行情况。
【问题讨论】: