Forum Discussion
SmartBear_Suppo
Alumni
14 years agoHello,
you could have Groovy script that would parse the element in xml, similar to this:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder("Properties#response")
holder.setNodeValue("//id", "aaaaa") // <- set value
for( node in holder['//id'] )
log.info node // <- debugging purposes
holder.updateProperty() // <- important
Hope this helps!
Vladimir
SmartBear Software
you could have Groovy script that would parse the element in xml, similar to this:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder("Properties#response")
holder.setNodeValue("//id", "aaaaa") // <- set value
for( node in holder['//id'] )
log.info node // <- debugging purposes
holder.updateProperty() // <- important
Hope this helps!
Vladimir
SmartBear Software