1
我寫了一個黃瓜集成測試,它運行正常。如何從中加載值。屬性文件在黃瓜-jvm步驟類
然後,我想從step.java一些類變量從的.properties得到他們的值的值
public class cucumberStepClass {
@Value("${value.from.propertiesfile}")
private String variable
//rest of integration test
}
有誰知道我怎麼能注入這些價值觀,所以我的測試可以使用它們?
你是對的我錯過了依賴。謝謝 –