kahhoet
9 years agoNew Contributor
Invoking SoapUI Test Cases From Code
Hi,
We have a number of test cases created in SoapUI and we would like the test cases to be invoked via code. Is there a Java library where we could reference in code and reuse the test cases that we have previously created via SoapUI?
Sample use case as follows:
List<SoapUIRequest> requests = SoapUIRequestLoader.load(“previously_created_soapui_testcases.xml”);
SoapUITestRunner runner = new SoapUITestRunner();
For (SoapUIRequest req : requests) {
Boolean pass = runner.runTest(req);
Boolean pass = runner.runTest(req);
// Some logic here.
}
}
Thanks