【问题标题】:Test case title appears as "feature"in TFS for all the cucumber test scenarios in the project项目中所有黄瓜测试场景的测试用例标题在 TFS 中显示为“特征”
【发布时间】:2019-03-28 13:15:34
【问题描述】:

我正在尝试在 TFS(具有一组功能文件)中运行 Eclipse java cucumber 项目。

在 TFS 中成功运行后,TestCase 标题显示为所有 TestCases 的“功能”。无法查看运行了哪个测试场景。虽然我可以看到日志中出现的功能名称,但这些名称并没有出现在结果中。如果有人可以帮助在 TFS 中设置 TestCase 标题,那就太好了。

【问题讨论】:

    标签: tfs automated-tests cucumber azure-pipelines-release-pipeline


    【解决方案1】:

    由于 TFS 选择 junit report ,我发现了这个问题。 我更新了指向黄瓜创建的junit单元报告的结果文件。它对我来说很好。更新了测试运行器文件以创建 junit 报告 -"junit:target/surefire-reports/TEST-TestSuite.xml" 并将 TFS 结果文件指向 target/surefire-reports/TEST-测试套件.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
               )
    

    【讨论】:

      猜你喜欢
      • 2021-10-15
      • 1970-01-01
      • 1970-01-01
      • 2019-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多