tshanmuganathan
10 years agoNew Contributor
Asserting using GROOVY SCRIPTING
Hi Techies, I am a SOAP UI Beginner and I am trying to validate the response XML from a simple currency converter web service : http://www.webservicex.net/CurrencyConvertor.asmx?WSDL I got the ...
- 10 years agocheck this out
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
holder.namespaces["ns"] = "http://www.webserviceX.NET/"
def conversionRate = holder.getNodeValue("//ns:ConversionRateResult")
log.info conversionRate