Kevin_Mannering
16 years agoOccasional Contributor
Documentation of the getXmlHolder Method with examples
Hi,
I am a soupui pro user getting started.
I have managed to get my response into a holder and save it for each iteration in a unique file.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "Erstbereitstellung ISP0 --> Aufruf 1#Response" )
millis = System.currentTimeMillis ()
long seconds = millis/1000
myfilename = "D:capturedrequest" + "$seconds" + ".xml"
file2 = (myfilename)
log.info "$myfilename"
def response = holder.getXml()
file2 << response
Now I would like to get an element from the Response rather than the whole response.
For example, my response contains:
89737666
How can I retun that ID?
Is the docu here really all you have:
http://www.soapui.org/userguide/functio ... roovyUtils?
We have Pro licenses. Is this the right place to post questions?
Rgds, Kevin
I am a soupui pro user getting started.
I have managed to get my response into a holder and save it for each iteration in a unique file.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "Erstbereitstellung ISP0 --> Aufruf 1#Response" )
millis = System.currentTimeMillis ()
long seconds = millis/1000
myfilename = "D:capturedrequest" + "$seconds" + ".xml"
file2 = (myfilename)
log.info "$myfilename"
def response = holder.getXml()
file2 << response
Now I would like to get an element from the Response rather than the whole response.
For example, my response contains:
How can I retun that ID?
Is the docu here really all you have:
http://www.soapui.org/userguide/functio ... roovyUtils?
We have Pro licenses. Is this the right place to post questions?
Rgds, Kevin