Forum Discussion

Yelena's avatar
Yelena
Occasional Contributor
7 years ago

ReadyAPI 2.5 - Content assertions with values that contain single quotes are always failing

After upgrade to 2.5 all my assertions that had values with single quotes are always failing.    I tried the following with no luck:  - recreating the assertion  - get value from the test (wa...
  • Yelena's avatar
    Yelena
    7 years ago

    I opened a support ticket with Smartbear and they were able to reproduce the issue. It was forwarded to R&D team.

     

  • Yelena's avatar
    Yelena
    7 years ago

    update from our developers:

    "It seems that in ReadyAPI 2.5.0, the Expected Result is now parsed as a JSON object, so in order to use special characters such as quotes, they will need to be escaped if they are part of a string value. 

    That said, please change your Expected Result to the following and let me know if that works for you:  \'yourValue\'."