[英]How to run multiple tags in CucumberOptions
我有兩個不同的功能文件 1 有 @Feature1 和 2 有 @Feature2 我只想用標簽運行這兩個功能 我的 TestRunner 代碼這會在標簽上產生 sytnax 錯誤
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/main/resources/features",
glue = "stepDefinition",
tags = {"@Feature1", "@Feature2"}
)
要一個接一個地執行多個標簽,您需要使用 or 。 請參閱下面的示例
tags={“@tag1 or @tag2”}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.