vijaydi
12 years agoContributor
Clear value of property holding the response after iteration
Hi,
I have the following groovy code in soapUI. I am getting the response of my request using the getXMLHolder method to a varaible called holder.
After the end of each iteration, I would like to clear the value that is in the holder variable. Could some one please help me with the code to clear the varaible thats holding the response.
The reason I require this in my scenario is, when I get a blank response for the request (with not even <envelope>..literally blank), the groovy script I use holds on to the last non-blank response and extracts results of that last response until it receives the next non-blank response to work with.
Thank you.
I have the following groovy code in soapUI. I am getting the response of my request using the getXMLHolder method to a varaible called holder.
def holder = grUtils.getXmlHolder("IDM_Modified#Response")
After the end of each iteration, I would like to clear the value that is in the holder variable. Could some one please help me with the code to clear the varaible thats holding the response.
The reason I require this in my scenario is, when I get a blank response for the request (with not even <envelope>..literally blank), the groovy script I use holds on to the last non-blank response and extracts results of that last response until it receives the next non-blank response to work with.
Thank you.