Sir ... Assertion is not working properly :
This is the response :
<soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body>
<ns2:processRequestResponse xmlns:ns2="http://service/eif/ekaplus/com/EIFMessage">
<ns2:EIFResponse>
<ns2:Status>PROCESSED</ns2:Status>
<ns2:ServiceId>ReceiveMaterial</ns2:ServiceId>
<ns2:Payload>
<ns3:GMRCreationResponse xmlns:ns3="
http://www.ekaplus.com/schema/GMRCreationResponse_Migration" xmlns:ns2="
http://www.ekaplus.com/schema/ReceiveMaterial" xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/"> <ns3:Status>ERROR</ns3:Status> <ns3:ErrorMessage>M is not a valid quantity for Product Zinc</ns3:ErrorMessage>
</ns3:GMRCreationResponse>
</ns2:Payload>
</ns2:EIFResponse>
</ns2:processRequestResponse>
</soap:Body>
</soap:Envelope>
Xpath expression that i am using is :
declare namespace ns2="
http://www.ekaplus.com/schema/ReceiveMaterial"declare namespace ns3="
http://www.ekaplus.com/schema/GMRCreationResponse_Migration"contains(//ns3:GMRCreationResponse/ns3:Status,'ERROR')
However i am getting the same XPATH assertion response for Status = ERROR or OK. Please see the image below. Why is it expecting []?
Thanks,
Avinash