![](/img/trans.png)
[英]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.