VLiljeb_ck
12 years agoOccasional Contributor
Ignore returns in assertion
Hi,
I am using xpath match to validate the response of a SOAP response, the response is compared against a JDBC response. The problem is that the JDBC response includes a return in the middle of the response. Is there someway this can be ignored in the xpath expression?
XPathContains comparison failed,
expecting [Number of opened dep accounts: 1 (Code 10). Number of cancelled dep accounts: 1 (Code 12).],
actual was [Number of opened dep accounts: 1 (Code 10).
Number of cancelled dep accounts: 1 (Code 12).]
I am using xpath match to validate the response of a SOAP response, the response is compared against a JDBC response. The problem is that the JDBC response includes a return in the middle of the response. Is there someway this can be ignored in the xpath expression?
XPathContains comparison failed,
expecting [Number of opened dep accounts: 1 (Code 10). Number of cancelled dep accounts: 1 (Code 12).],
actual was [Number of opened dep accounts: 1 (Code 10).
Number of cancelled dep accounts: 1 (Code 12).]