XPath Assertion of Jmeter assertion

1.XPath

XPath is the XML path language, which is a language used to determine the location of a certain part of an XML (subset of the standard common standard language) document.

XPath is an XML-based tree structure that provides the ability to find nodes in the data structure tree

Action object: assert for the data type whose return object is XPath

2. Interface display

How to add:

A request--right click to add--assertion--XPath2 Assertion

3. Obtaining method

 Put it in XPath Assertion: there is an error

 4. XPath Assertion must be used together with the assertion result to check whether the XPath Assertion is correct

5. Results page:

The assertion result page will also report an error:

 6. The reason for the error

 7. Response assertion relative to XPah Assertion

 Response assertions are more commonly used

Guess you like

Origin blog.csdn.net/qq_55482452/article/details/126878790