Forum Discussion

CamillaR's avatar
CamillaR
Occasional Contributor
1 hour ago

XPath Match Assertion swapped expected and actual result

Hi,

I have a test step with an XPath Match Assertion to check the nuber of rows in the response. The expression is ${#ResponseAsXml#count(//Row)} and I have set the expected result to be 1.

I run the tests on my PC with ReadyAPI 4.2.0 (when developing the tests) and nightly on a server with ReadyAPI 3.62.0. I noticed that the assertion gives different information depending on the version.

In ReadyAPI 3.62.0 (on server) the error message when this check fails is:
Expecting:
<"1">
to be equal to:
<"0">
but was not..

But in ReadyAPI 4.2.0 (on my PC) the error message is:
expected: "0"
but was: "1"

It seems like the expected and actual values are swapped in ReadyAPI 4.2.0

 

 

 

No RepliesBe the first to reply