Forum Discussion
Tamas_Rev
17 years agoNew Contributor
Well, found a solution:
I'll have to find a way to make it faster e.g. it'd enough to create one tc and tr for one loadtest.
However, this is the basics of the solution.
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner;
import com.eviware.soapui.support.types.StringToObjectMap;
...
def tc = testRunner.getTestCase();
tc.setDiscardOkResults(false);
def tr = new WsdlTestCaseRunner(tc, new StringToObjectMap());
def result = tr.runTestStep(tc.getTestStepByName( requestName ), false, true);
I'll have to find a way to make it faster e.g. it'd enough to create one tc and tr for one loadtest.
However, this is the basics of the solution.