Forum Discussion
Cizo89
12 years agoFrequent Contributor
Hi,
this should give you the idea:
Regards,
Marek
this should give you the idea:
String xml = '''<a>
<b>b1</b>
<b>b2</b>
<b>b3</b>
<b>b4</b>
</a>'''
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def holder = groovyUtils.getXmlHolder(xml)
Integer expectedSize = 4
assert holder.getNodeValues("//a/b").size() == expectedSize
/*
To get whole Response of your requested step, use this:
def holder = groovyUtils.getXmlHolder("Your_Test_StepT#ResponseAsXml")
*/
Regards,
Marek