我可以将2位赛跑者生成的2份黄瓜报告合并为一个吗

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

我正在尝试找到一种将两个测试报告合并为一个方法,以便可以在同一调用中运行两个级别的测试。据我所知,功能始终以并行方式运行,而“ parallel = false”仅适用于方案,我想按顺序运行,而某些则并行运行。就像这样:

public void testParallel() {
    Results results1 = Runner.path("classpath:testone").tags("~@ignore").parallel(0);
    Results results2 = Runner.path("classpath:testtwo").tags("~@ignore").parallel(5);
    # Combine 2 results here
    Result = results1 + results2 (or concat, or whatever is correct)
    # then generate global report
    generateReport(results.getReportDir());
    assertEquals(0, results.getFailCount(), results.getErrorMessages());
  }

Any help appreciated
Thanks ;-)
parallel-processing cucumber reporting karate
1个回答
0
投票

3个选项:

  • 将您的测试重构为同一个Scenario(推荐)
  • 将测试重构为同一Feature + @parallel=false标记
  • 编写新功能并对call -s Scenario进行by tag,请注意,一旦输入call,所有内容都与“调用方”在同一线程上]]
© www.soinside.com 2019 - 2024. All rights reserved.