baruA
12 years agoOccasional Contributor
Compare Results of Soap Response with JDBC Response
I am trying to Compare Results of Soap request with JDBC Request. I am trying achieve this with Xpath assertion in Soap Request but failed. Could you anybody help me in resolving this issue.
Declare was //*:CloseWebDrawerResult
Expected Result: //*:${JDBC Request#ResponseAsXml#//Results[1]/ResultSet[1]/Row[1]}
When I test the Assertion i am getting the error
XPathContains comparison failed, expecting [//*: 2013-09-19 12:34:43.0 20 2022 WS Test ], actual was [?xml version="1.0" encoding="utf-16"?> 2022 9/19/2013 12:34:43 PM 20 2022 WS Test ]
Declare was //*:CloseWebDrawerResult
Expected Result: //*:${JDBC Request#ResponseAsXml#//Results[1]/ResultSet[1]/Row[1]}
When I test the Assertion i am getting the error
XPathContains comparison failed, expecting [//*: 2013-09-19 12:34:43.0 20 2022 WS Test ], actual was [?xml version="1.0" encoding="utf-16"?> 2022 9/19/2013 12:34:43 PM 20 2022 WS Test ]