Frank_Cohen
13 years agoOccasional Contributor
WsdlTestCaseRunner not returning a result code
TestMaker's soapUI script runner is not seeing the result code when an assertion fails in the soapUI TestSuite. What API should we use to get the assertion failure message? Here is a snippet of code we use to call soapUI.
Thanks, in advance.
-Frank
---
This is the code we are using to figure soapui assertion but does not work:
WsdlTestCaseRunner runner = testcase.run(pmap, false);
if (TestRunner.Status.FINISHED.compareTo(runner.getStatus()) != 0) {
if (runner.getError() instanceof Exception) {
throw (Exception) runner.getError();
}
throw new Exception(runner.getError());
}
Thanks, in advance.
-Frank
---
This is the code we are using to figure soapui assertion but does not work:
WsdlTestCaseRunner runner = testcase.run(pmap, false);
if (TestRunner.Status.FINISHED.compareTo(runner.getStatus()) != 0) {
if (runner.getError() instanceof Exception) {
throw (Exception) runner.getError();
}
throw new Exception(runner.getError());
}