I've upgraded to SoapUI Pro (ReadyAPI) recently and I've come across the following problem. I have an XPath assertion like this:
declare namespace ns2='http://some.schema.tld/foo/bar/1.0';//ns2:GenerateOrResetPasswordFault//faultCode
it's matched against a specific value which I get in the faultCode
element. I however get two of these in the same parent, so the response contains something like
//..
<GenerateOrResetPasswordFault>
<faultCode>123</faultCode>
<faultCode>456</faultCode>
</GenerateOrResetPasswordFault>
//...
I previously had two assertions, one matched against 123
and the other, same XPath, matched against 456
and it worked. Now after switching the assertion fails because the XPath actually returns [123,456]
as a result.
What is the best way to handle this, please?