Forum Discussion
ccdssv1
12 years agoContributor
Hi,
I can't say what is wrong with your code without testing it, but over all you complicate to much the response extraction and parsing, there are more ways to parse the xml holder and if you do an search on the forum you will get more solutions.
A simple should be is this:
Hope this will help you.
I can't say what is wrong with your code without testing it, but over all you complicate to much the response extraction and parsing, there are more ways to parse the xml holder and if you do an search on the forum you will get more solutions.
A simple should be is this:
import com.eviware.soapui.support.xml.XmlUtils
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
xmlResponseHolder = groovyUtils.getXmlHolder("PingTest#Response")
retunValue = xmlResponseHolder.getDoomNode('//return/text()').nodeValue
log.info retunValue
Hope this will help you.
Related Content
Recent Discussions
- 10 days agoemoya