Ask a Question

V2.5 - Jsonpath expression gives a false negative with comparision

Beginner
Occasional 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
5 REPLIES 5
Lucian
Community Hero

It's a bug in ReadyApi 2.5. The support guys are already looking into it.



If my answer helped please click on the 'Accept as Solution' button.
Beginner
Occasional Contributor

Hi @Lucian

 

Thanks a lot for the reply!

 

Is there a ticket number from smartbear that you are aware of?

Yes. I'll find it and post it tomorrow.


If my answer helped please click on the 'Accept as Solution' button.
Lucian
Community Hero

Case #00315224 was recorded for fixing this. I will keep you posted.



If my answer helped please click on the 'Accept as Solution' button.
Beginner
Occasional Contributor

Thanks for the update.

cancel
Showing results for 
Search instead for 
Did you mean: