Forum Discussion
MarcusJ
Staff
10 years agoHi,
Is there a particular reason you need to use a Groovy script to do this? You can do this easily using an XPath assertion.
http://readyapi.smartbear.com/features/get_data/xpath/assertion
Regards,
Marcus
SmartBear Support
tomptomp
10 years agoOccasional Contributor
Because XPath expressions include the other elements of the XML and namespace specifics which in my scenario will change from response to response.
I suppose I could use the built in 'Contains' assertion but I would still need to insert a RegEx wildcard into it, which I cannot figure out