ctb
10 years agoOccasional Contributor
How do I fail an automated SOAP request?
I am a very new SOAP UI user and I am testing an API using SOAP calls. I am setting up automated tests for each call . However, every one is successful from a SOAP UI standpoint because I receive a result. However, I want to be able to fail the case when I receive a result back such as
ErrorStr xsi:type="xsd:string">Authorization denied ErrorStr
How do I make a test case fail based upon "ErrorStr" existing in the SOAP response?
Any help would be greatly appreciated
- One can add assertions for the test request test step. you can add contains certain string or not contains string you may make it fail or pass as per your need.
Also check soapui.org site for more details on the documentation.