Table of content

XML Assertion in JMeter

XML Assertion is used to verify that the server response data comprises of a correct XML document or not.

Any external resources are neither downloaded nor validated. When there is invalid XML code, the reason for failure will be reported in an Assertion Failure message.

The following Example demonstrates the XML Assertion

  • Open JMeter and then Right-click on the Test Plan and then add Thread Group to the Test Plan.
  • Next Right-click on the Thread Group and then add XML Assertion to the.
    adding-xml-assertion-to-thread-group-jmeter
  • If you have XML Document, then you can run the test plan and then verify the XML document in the response data.
0 results
Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions