Forum Discussion

plaidshirt's avatar
plaidshirt
Contributor
6 years ago
Solved

Save attachments automatically in SoapUI with Groovy

I try to save all the attachments from a SOAP response. I use following Groovy script. def testStep = testRunner.testCase.getTestStepByName("SubmitFile") def response = testStep.testRequest.respons...
  • JHunt's avatar
    6 years ago

    This

    def ins =  response.responseAttachments[0].inputStream

    should be

    def ins =  response.attachments[0].inputStream

    See getAttachments() in interface Response.