since 2.6
action-pack API
author JOSF-core team
status active

Verifies if a node value equals, is less (or equal), is greater (or equal) in a response, based on the locator and given operator.

You can use the following operators '=, >, <, =>, =< or !='. Omit the operator to verify the exact match (equals the '=' operator)

Note that an XML response requires an xPath and a JSON response requires JsonPath.


Given this API response is present in the context;

    <lastName>DeWittt Bukater</lastName>
Action name Object Data Result
Verify node value //age[1] < 30 Results to PASS (age of Rose is less than 30)
Verify node value //age[0] 20 Results to PASS (age of Jack is 20)