Forum Discussion

Beginner's avatar
Beginner
Occasional Contributor
6 years ago

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

  • Lucian's avatar
    Lucian
    Community Hero

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

    • Beginner's avatar
      Beginner
      Occasional Contributor

      Hi Lucian

       

      Thanks a lot for the reply!

       

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

      • Lucian's avatar
        Lucian
        Community Hero
        Yes. I'll find it and post it tomorrow.