【发布时间】:2017-04-16 16:12:01
【问题描述】:
我的跑步者类是这样的:
@RunWith(Cucumber.class)
@CucumberOptions(
plugin = { "pretty", "html:target/cucumber", "json:target/cucumber.json" },
glue = "glue path",
features = "feature path",
tags = {"@tags"}
)
public class TestClass{
}
我想知道是否有办法替换硬编码值,例如
glue = "**some path**", features = "**some feature**"
使用常量还是变量?你能帮忙吗?
谢谢。
【问题讨论】:
-
你可以看看QAF gherkin client它提供了通过xml文件或属性文件中的属性进行配置的方法。
标签: cucumber cucumber-jvm runner