【发布时间】:2016-06-28 13:37:15
【问题描述】:
在我的项目中使用的是黄瓜 junit ANT。
我正在运行 jenkins 的 10 个场景,如果某些场景失败,如何再次只运行那些场景。
我的测试 ruuner 类
@RunWith(Cucumber.class)
@CucumberOptions(
features = "Feature Files"
,plugin = {"json:target/cucumber-json-report.json","html:target/html/"}
,glue={"com.mlc.testDefinitionLayer"}
,tags ={"@Tag1,@tag2,@tag3,@tag4"}
)
public class TestRunner {
public static void main(String[] args) {
}
}
如果无法从 Jenkins 中读取,至少我可以从包含/排除输入之类的 excel 工作表数据中读取...并在测试运行器类中调用 java 函数(excel 逻辑读取数据)并选择包含(excel 中的数据)测试标签中的案例。
【问题讨论】:
标签: java selenium-webdriver automation cucumber build-automation