Forum Discussion
omatzura
17 years agoSuper Contributor
Hi!
ok.. hmm.. the following script will store the xml-string for each item:
Could this be a start?
regards!
/Ole
eviware.com
ok.. hmm.. the following script will store the xml-string for each item:
// get holder for response
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "Test Request#Response" )
// select nodes
holder.namespaces["ns"] = "http://EB.telecom.co.nz/"
def nodes = holder.getDomNodes( "//ns:ProductOfferingSummary" )
// create list of XML strings
def list = []
for( node in nodes )
{
java.io.StringWriter writer = new java.io.StringWriter()
com.eviware.soapui.support.xml.XmlUtils.serialize( node, writer )
list.add( writer.toString() )
}
// some debug info..
log.info( list )
log.info( list.size() )
// store in context for later access
context.nodeList = list
Could this be a start?
regards!
/Ole
eviware.com
Related Content
- 9 years ago
Recent Discussions
- 19 days ago