对于项目中的所有黄瓜测试场景,测试用例标题在TFS中显示为“功能”

问题描述 投票:0回答:1

我试图在TFS(具有一组功能文件)中运行Eclipse java黄瓜项目。

在TFS中成功运行后,TestCase标题显示为所有TestCase的“功能”。无法查看运行了哪个测试方案。虽然我可以看到日志中出现的功能名称,但这些名称不会出现在Result中。如果有人可以帮助在TFS中设置TestCase标题会很棒。

tfs automated-tests cucumber azure-pipelines-release-pipeline
1个回答
0
投票

由于TFS正在挑选junit报告,我发现了这个问题。我更新了我的结果文件,指向黄瓜创建的junit单元报告。它对我来说很好。更新了测试运行器文件以创建junit报告 - “junit:target / surefire-reports / TEST-TestSuite.xml”并将TFS结果文件指向target / surefire-reports / TEST-TestSuite.xml。代码如下。

    @CucumberOptions(
                features= {"src/test/resources/Features"},
                plugin   = {"pretty:STDOUT","html:Reports/cucumber-pretty",**"junit:target/surefire-reports/TEST-TestSuite.xml"**,               "com.cucumber.listener.ExtentCucumberFormatter:Reports/Reporting/Quixxi_Report.html"},
                monochrome = true,
                dryRun=false
           )
© www.soinside.com 2019 - 2024. All rights reserved.