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 (was thinking maybe there are some invisible characters or spaces)
Assertion is failing with the message:
-> Comparison failed. Path: [my path (JSON)]; Expected value: [my 'value' not found]; Actual value: [my 'value' not found].
P.S. Using wildcard to remove single quotes is the only thing that works as a workaround.
I opened a support ticket with Smartbear and they were able to reproduce the issue. It was forwarded to R&D team.
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\'."