JameeraKM
14 years agoNew Contributor
Save soapui response
I am using the below script to save soapui test results. I have to add this groovy for each test case.
def myOutFile = "C:/Temp/MyOutDir/response.xml"
def response = context.expand( '${MyTestRequest#Response}' )
def f = new File(myOutFile)
f.write(response, "UTF-8")
but my project need is to save all the test cases results in test suit at a time.
How can i use groovy to save all my test case responses by running a groovy at test suit level/project level ?
def myOutFile = "C:/Temp/MyOutDir/response.xml"
def response = context.expand( '${MyTestRequest#Response}' )
def f = new File(myOutFile)
f.write(response, "UTF-8")
but my project need is to save all the test cases results in test suit at a time.
How can i use groovy to save all my test case responses by running a groovy at test suit level/project level ?