Forum Discussion
While you could use Groovy I personally always like to see if the base functionality can solve the problem. Have you looked at the Assertion TestStep in particular Groups they allow you to set up AND/OR groups. From the docs about the OR condition:
"At least one assertion within the group must evaluate to VALID to assert a group PASSED condition."
Thus you can put an assertion test step after your SOAP step and then move your assertions from the soap step into the assertion test step.
But looking at your last line:
"and continue loop until assertion 2 failed"
If you really want to remember a fail condition from a previous run through the loop and combine it with a check from the current run through the loop, then yes you'll probably need Groovy. Very briefly, you'd want to remove your assertions from the SOAP test step, then within your Groovy script get and check you data (you can use the point and click functionality to get the data) and then look at saving relevant information to the context for retrieving and checking later on. You can then use the fail method of the testRunner object that the Groovy script provides.
Hi.
Thank you for your detailed reply, but unfortunately your solutions only for SoapUI Pro version. I have the free one.
Do you know how exactly to do that just with groovy script?
- Radford8 years agoSuper Contributor
OK... This is the "Pro" forum, the open source forum can be found here:
https://community.smartbear.com/t5/SoapUI-Open-Source/bd-p/SoapUI_OS
Sorry I can't give you the exact details as that depends of your exact scenarios, also I am not exactly sure what features are available in the open source version.
You might be able to get a better answer from the people in the SoapUI Open Source as they will know its capabilities better.
[nmrao can you move this post to the SoapUI Open Source forum?]
Related Content
- 7 years agoDonkey2017
- 5 years agoNinjaMarvel
- 6 years agomartonjurak
- 7 years agoDonkey2017