Forum Discussion
SmartBear_Suppo
Alumni
14 years agoHi!
Yes, it can be done with Groovy Scripting (Script Assertion), but the easiest way is probably to create an Assertion TestStep and combine two assertions in there with OR:
That way the OR assertion will pass either if the request Lacks the optional element or if the Element is correct.
The assertion TestStep is part of soapUI Pro 4.5.1 and is described in detail here.
Regards
Henrik
SmartBear Software
Yes, it can be done with Groovy Scripting (Script Assertion), but the easiest way is probably to create an Assertion TestStep and combine two assertions in there with OR:
That way the OR assertion will pass either if the request Lacks the optional element or if the Element is correct.
The assertion TestStep is part of soapUI Pro 4.5.1 and is described in detail here.
Regards
Henrik
SmartBear Software