Xpath Assertion in Jmeter

Make a html req going to w3schools.com/xml/note.xml and add xpath assertion to it.

In xpath assertion we can write //heading or /notes/heading in Xpath Assertion and press validate to check if the xpath is true.

Then we can run this test case and if there is a node in xml file named heading it will pass ,else it will fail.

We can even check whether the heading as well and its value is there in xml file by //heading="Reminders"