我已经写了一个黄瓜集成测试,运行正常。
然后我想要来自step.java的一些类变量从.properties值中获取它们的值
public class cucumberStepClass {
@Value("${value.from.propertiesfile}")
private String variable
//rest of integration test
}
Run Code Online (Sandbox Code Playgroud)
有谁知道我如何注入这些值,以便我的测试可以使用它们?