Forum Discussion
Cizo89
13 years agoFrequent Contributor
Hi rakeshg,
this probably can't be done by Property Transfer, because if I'm not wrong this step can't append values.
So it will always save the value from the last node.
But you could use this simple script, which should work for you:
Regards,
Marek
this probably can't be done by Property Transfer, because if I'm not wrong this step can't append values.
So it will always save the value from the last node.
But you could use this simple script, which should work for you:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder(your_xml)
String valuesAsList = ""
for (nodeValue in holder.getNodeValues("//Text")){
valuesAsList += nodeValue + ","
}
//For example, setting these values as a property into the TestCase
testRunner.testCase.setPropertyValue("values", valuesAsList[0..-2])
Regards,
Marek