我正在構建一個能夠執行Selenium指令和Cucumber指令的框架。我已經創建了黃瓜轉輪在一個單獨的空類用下面的代碼JVM黃瓜執行
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
public class RunCukesTest {
}
我也將有硒指令的處理器在一個單獨的類。
prop.load(ClassLoader.getSystemResourceAsStream("src/main/resources/runConfig.properties"));
if(prop.getProperty("instructionsheet").contains("InstructionSheets")){
KeywordProcessor kp = new KeywordProcessor();
}else if(prop.getProperty("instructionsheet").contains("FeatureFiles")){
RunCukesTest runCukes = new RunCukesTest();
}
我怎樣才能執行,如果它是一個空類?我只是創建黃瓜亞軍類的實例黃瓜亞軍類?或者我必須將其他東西劃分爲