Forum Discussion
omatzura
19 years agoSuper Contributor
Hi!
sure.. create a groovy script step after your request and use something like the following:
def testStep = testRunner.testCase.getTestStepByName( "request.." )
def response = testStep.testRequest.response
def outFile = new java.io.FileOutputStream( "myfile..")
def in = response.attachments[0].inputStream
com.eviware.soapui.support.Tools.writeAll( outFile, in )
Hope I got that right.. :-)
regards!
/Ole
eviware.com
sure.. create a groovy script step after your request and use something like the following:
def testStep = testRunner.testCase.getTestStepByName( "request.." )
def response = testStep.testRequest.response
def outFile = new java.io.FileOutputStream( "myfile..")
def in = response.attachments[0].inputStream
com.eviware.soapui.support.Tools.writeAll( outFile, in )
Hope I got that right.. :-)
regards!
/Ole
eviware.com