[英]Run scenarios in a cucumber feature file in parallel, one feature file at a time
[英]Cucumber run only one feature file and ignore the rest
我创建了两个功能文件,但是有一个功能文件正在执行,而第二个功能文件没有被执行。 为什么是这样?
@CucumberOptions(
features = {"src/test/resources/Features/"},
glue = {"com.nicholas.StepsDef"},
plugin = {"pretty", "com.nicholas.Manager.GlobalHooksManager",
"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"}
)
有两个功能文件位于 src/test/resources/Features/。 一个是登录,另一个是添加产品。 永远不会执行添加产品。 请帮忙。 十亿感谢您的帮助。
为什么是这样? 源代码: https : //drive.google.com/file/d/1zgXCxSzoQj70FEVCWQf65n8iQWIcfPxm/view?usp=sharing
我发现根本原因与范围报告有关。 当我注释掉范围报告时,它将运行两个功能文件。 你的解决方案是什么?
启用此功能时,/*"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"
它会抛出 IllegalArgumentException: Test name must not be null or empty
如何解决这个问题?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.