Forum Discussion
MarcusJ
Moderator
Hi,
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
8 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
Related Content
- 9 months agooriShalhon
- 3 years agokflood
Recent Discussions
- 4 days agominhng