Wednesday, 19 August 2015

SoapUI multiple namespace in XPath

Was trying to grab element text from the Response of the previous Test Step which had multiple namespaces

${CreateRecord#Response#//*[namespace-uri()='http://tempuri.org/' and namespace-uri()='http://ws.company.com' and name()='RecordID']/text()}

didn't work so ended up ignoring namespaces

${CreateRecord#Response#//*[local-name()='RecordID']/text()}


No comments:

Post a Comment