Beginner
6 years agoOccasional Contributor
V2.5 - Jsonpath expression gives a false negative with comparision
Jsonpath expression assertion to match values fails though the values are matching which is a false negative.
I have a jsonpath expression to match assertion, under the expected result section, option 'Select from Current' brings a value from the response and when I click on 'test' button. it says that the comparison failed. Here is the error message.
Ex: Comparison failed. Path: [$.data.accounts[?(@.id =='${DataSource#account_id}')].number]; Expected value: [[16101]]; Actual value: [[16101]].
It's ready API V2.5