cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP UI Assertions

SOLVED
Regular Visitor

SOAP UI Assertions

Hello,

 

I have a TestSuite set up in SoapUI 5.5.0, and in my Rest Request, I have an assertion to look at the result of an API call. What I'm looking to do, is use either a Contains or Not Contains Assertion to know when I get back either a Not Found string if I use the Contains Assertion or an @ if I use the Not Contains Assertion.

Both assertions are working, but when I'm iterating through several hundred api calls in a load test, I was trying to see which calls came back with a Not Found response in a report, or some view so that I could get some metrics on the load test. 

 

If there is additional info needed to help answer this, I'm more than willing to provide it.

 

Thank You,

Jon

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super Contributor

Re: SOAP UI Assertions

Hi @JVisconti ,

 

Don't use contains or Not Contains assertion as it checks the whole response.

You can either use script assertion in which you can define all your validation points and it will check particular node value.

 


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal

View solution in original post

1 REPLY 1
Highlighted
Super Contributor

Re: SOAP UI Assertions

Hi @JVisconti ,

 

Don't use contains or Not Contains assertion as it checks the whole response.

You can either use script assertion in which you can define all your validation points and it will check particular node value.

 


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal

View solution in original post

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors