12 years ago
Save attachment
Is there a way to save an attachment that is specified as xop:Include?
I have tried using groovy script to write the testRunner.test.Case.getTestStepByName("testStepName").testRequest.response.attachments[0].inputStream to a file and the file is always blank.
There seems to be an issue access attachments[0] as well. I had to work around the issue by using a for loop.
Here is the tag that contains the xop:Include. The attachment is viewable by double clicking on the attachment tab.
<Document>
<xop:Include href="cid:urn:uuid:6BBED447E3417BEFED1377108692889@apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
</Document>
Thanks
I have tried using groovy script to write the testRunner.test.Case.getTestStepByName("testStepName").testRequest.response.attachments[0].inputStream to a file and the file is always blank.
There seems to be an issue access attachments[0] as well. I had to work around the issue by using a for loop.
Here is the tag that contains the xop:Include. The attachment is viewable by double clicking on the attachment tab.
<Document>
<xop:Include href="cid:urn:uuid:6BBED447E3417BEFED1377108692889@apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
</Document>
Thanks