如何为多个用户运行同一要素文件时生成多个黄瓜json文件?

时间:2018-10-18 15:03:58

标签: json testng report cucumber-jvm

@CucumberOptions(功能=“ src / test / resources / features / xxxxxx / xxxxx.feature”,标签=“ @ tag1”,胶水= {         “ com.xxxx.sfdc.opportunities.stepdefinitions”},格式= {“漂亮”,                 “ html:target / cucumber-reports / cucumber-pretty”,                 “ json:target / cucumber-reports / CucumberTestReport.json”})

以上是我的黄瓜选项,它通过扩展AbstractTestNGCucumberTests将testng用作运行程序。我通过testng xml调用此功能文件,该文件为4个不同的用户运行相同的功能文件。

因此,每次运行都会覆盖黄瓜报告json文件。如何避免这种情况并获得每次运行的报告(针对每个用户)

1 个答案:

答案 0 :(得分:0)

我建议使用test-ng extension qaf,它为嫩黄瓜用户提供gherkin client。此外,它还有自己的bdd实现以及其他功能。

相关问题