Forum Discussion
While defining regular expressions, it may involve special characters, so you may need to escape them properly. This is just general input.
Hi,
If I'm understanding you right, you want to preprocess some properties extracted from the response before then applying standard Assertions to them?
If so, one such approach would be to use a Response Filter to change the response values before applying the Assertions - see
https://www.soapui.org/scripting---properties/custom-event-handlers.html (gives some background, but is really for the paid for version of SoapUI)
See also point 6 of https://www.soapui.org/scripting-properties/tips-tricks.html
It can also be done on the open source version, but requires coding effort, which may be more effort than its worth in this case.
Instead, have you considered using a Script Assertion instead? That way you could just extract the values from the response e.g. something like
def prop = context.expand( '${#Project#propertyA}' ) assert prop.toUpperCase()=="....."
Is this the kind of thing you were meaning?
Cheers,
Rupert