XPath
Last updated
Last updated
XPath assertion allows to verify the response message with an XPath expression match.
This assertion interface is as follows:
This assertion interface is as follows:
Text - the text to find the value in;
Path - an XPath selector;
Expected value - the value that should be matched.
The Use negative statement flag means using the opposite assertion result, i.e. there should be no values for the specified selector in the text.
To get rid of an error, the XPath selector value is assigned to the expected value.
The assertion has the xpath
type in the file. The type description can be found in Assertion file representation Assertion file representation documentation in the #/definitions/ScriptAssertion
definition.