11 years ago
Handling a SOAP Fault
Hi folks, before i start i would like to apologize for my bad English :-).
Now to the topic: is there a possibility in a SoapUI TestRunListener to recognize whether the TestStepResult in the afterStep method contains any SOAP Fault? I've considered to use the NotSoapFaultAssertion adding it to my TestStep before it is executed. But if i do so, the runner just quits after the Assertion fails. I would like to do something like this:
public void afterStep(TestCaseRunner runner, TestCaseRunContext context, TestStepResult stepResult) {
//pseudo code
if(stepResult.containsSoapFalt()){
//do something special, for example
runner.gotoStep(32);
} else {
runner.gotoStep(18);
}
}
I would like to have a chance to handle any SOAP fault AND to let my runner continue however.
Thanks for Help.
Now to the topic: is there a possibility in a SoapUI TestRunListener to recognize whether the TestStepResult in the afterStep method contains any SOAP Fault? I've considered to use the NotSoapFaultAssertion adding it to my TestStep before it is executed. But if i do so, the runner just quits after the Assertion fails. I would like to do something like this:
public void afterStep(TestCaseRunner runner, TestCaseRunContext context, TestStepResult stepResult) {
//pseudo code
if(stepResult.containsSoapFalt()){
//do something special, for example
runner.gotoStep(32);
} else {
runner.gotoStep(18);
}
}
I would like to have a chance to handle any SOAP fault AND to let my runner continue however.
Thanks for Help.