How to validate response assertion with XML elements see below http response example?
1 Answer
I think XPath Assertion would be a better match for XML data, the relevant XPath expression to check whether sampledUrl
node text is equal to http://abc.com/off/paul.html
will be:
//sampledUrl/text()='http://abc.com/off/paul.html'
See How to Use JMeter Assertions in Three Easy Steps article for more information on conditionally failing JMeter samplers with different types of assertions.