cancel
Showing results for 
Search instead for 
Did you mean: 

How can I save an attachment from a REST response to a file?

SOLVED
animan
New Contributor

How can I save an attachment from a REST response to a file?

I am sending a POST API request and the response includes data for an attachment.  Is there a way that I can save this data to a file so that I can use it for additional validation?  My goal is to test sending the attachment back up to the server using a different request.

 


Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
PaulMS
Super Contributor

Re: How can I save an attachment from a REST response to a file?

Dump File should work for any file type.

 

https://www.soapui.org/getting-started/working-with-soapui/saving-responses.html

https://support.smartbear.com/readyapi/docs/projects/ui/request-properties/rest.html

Dump File

The path to the file where responses will be saved. If empty, responses are discarded.

View solution in original post

3 REPLIES 3
nmrao
Community Hero

Re: How can I save an attachment from a REST response to a file?

What kind of attachment is that?
Can you try the solution from below thread?
https://community.smartbear.com/t5/SoapUI-Open-Source/Saving-attachments-automatically/td-p/880


Regards,
Rao.
PaulMS
Super Contributor

Re: How can I save an attachment from a REST response to a file?

Dump File should work for any file type.

 

https://www.soapui.org/getting-started/working-with-soapui/saving-responses.html

https://support.smartbear.com/readyapi/docs/projects/ui/request-properties/rest.html

Dump File

The path to the file where responses will be saved. If empty, responses are discarded.

View solution in original post

animan
New Contributor

Re: How can I save an attachment from a REST response to a file?

Thank you both for the assistance.  I was able to complete my automated test using "dump file".

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors