Forum Discussion
nmrao
12 years agoCommunity Hero
Assuming that the request step name is "test" and followed by a groovy script with following code
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
holder = groovyUtils.getXmlHolder( "test#Request" )
holder.namespaces["cfn"] = "namespace"
def item1Value = holder.getNodeValue("//cfn:contexteService/cfn:agent/@item1")
def item2Value = holder.getNodeValue("//cfn:contexteService/cfn:agent/@item2")
log.info item1Value
log.info item2Value