use of io.irontest.models.endpoint.Endpoint in project irontest by zheng-wang.
the class IIBTeststepRunner method run.
protected BasicTeststepRun run(Teststep teststep) throws Exception {
Endpoint endpoint = teststep.getEndpoint();
String actualRunnerClassName;
ClassLoader classLoader;
if (Endpoint.TYPE_IIB.equals(endpoint.getType())) {
// it is an IIB 10.0 endpoint
actualRunnerClassName = "io.irontest.core.runner.IIB100TeststepRunner";
classLoader = iib100ClassLoader;
} else {
// it is an IIB 9.0 endpoint
actualRunnerClassName = "io.irontest.core.runner.IIB90TeststepRunner";
classLoader = iib90ClassLoader;
}
Class actualRunnerClass = Class.forName(actualRunnerClassName, false, classLoader);
Constructor<TeststepRunner> constructor = actualRunnerClass.getConstructor(Endpoint.class);
TeststepRunner actualRunner = constructor.newInstance(endpoint);
actualRunner.setTestcaseRunContext(getTestcaseRunContext());
return actualRunner.run(teststep);
}
Aggregations