AnandKiran
16 years agoFrequent Contributor
Want to collect the values from the nodes
Hi Ole,
I have a requirement where i need to collect all the values from the nodes .. I have pasted the Response also , using groovy i want to store the values in an Array .
4f90684f-4d39-490a-abec-4105c4bb6489
0.2691260000000000
True
Iain Banks
New
Ship
Amazon
Small
-SubmissionDate
Books
I was using the below script for collect the values but it didnt work ..
import com.eviware.soapui.support.*;
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder ("Test Request#Response")
Output= holder.getNodeValues("//Author")
UISupport.showInfoMessage("author is ${Output}")
can you give me a solution for this issue .
Thanks with regards
Anand Kiran
I have a requirement where i need to collect all the values from the nodes .. I have pasted the Response also , using groovy i want to store the values in an Array .
I was using the below script for collect the values but it didnt work ..
import com.eviware.soapui.support.*;
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder ("Test Request#Response")
Output= holder.getNodeValues("//Author")
UISupport.showInfoMessage("author is ${Output}")
can you give me a solution for this issue .
Thanks with regards
Anand Kiran