Forum Discussion
SmartBear_Suppo
Alumni
17 years agoYou can use the holders getXml() method to get the String representation fo the xml, and then write that to the file e.g.
def response = holder.getXml()
file << response
Note: the above code will append the response to the file if it already exists, so you might want to ensure that it is empty.
If the you want a new file for each iteration, use a random number in the name of the file, or the number of the iteration.
BTW, to ensure prompt response, please post in the SoapUI Pro forum
Good luck!
/Nenad
http://eviware.com
def response = holder.getXml()
file << response
Note: the above code will append the response to the file if it already exists, so you might want to ensure that it is empty.
If the you want a new file for each iteration, use a random number in the name of the file, or the number of the iteration.
BTW, to ensure prompt response, please post in the SoapUI Pro forum
Good luck!
/Nenad
http://eviware.com