我正在构建一个能够执行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();
}
我怎样才能执行,如果它是一个空类?我只是创建黄瓜亚军类的实例黄瓜亚军类?或者我必须将其他东西划分为