Ensure Result Equals
Last update January 14, 2015
The Ensure Result Equals assertion lets you ensure that a JSON Path result is equal to an expected value.
Complete the following fields:
Defines the name of the assertion.
Specifies the behavior of the assertion from the drop-down list.
Specifies the step to which to redirect if the assertion fires.
Identifies event text to print if the assertion fires.
- JSON Path
Designates an expression that consists of a sequence of JSON properties in a JSON document. The JSON Path represents a path to a destination JSON property.
- Expected value
Defines the expected value of the JSON Path result. Two arrays are considered equal when the order of the elements in both arrays is equal, because an array is an ordered list.
- Run Assertion
To run and execute the filter, click Run Assertion.
- Ignore order of array elements
Two JSON arrays with the same set of elements but different element order are considered equal in comparison.
Was this helpful?
Thank you for your feedback.