How to test fileupload using SOAP UI.
There is a service which accepts file as input I want to simulate that using SOAP UI
It gives me .content开发者_运维技巧 should be inline .
Here are some docs on using attachments in soapUI.
http://www.soapui.org/SOAP-and-WSDL/adding-headers-and-attachments.html
From Ole in the eviware forum
- Create a new Project
- Create a TestSuite in the Project
- Create a TestCase in the TestSuite
- Add an HTTP TestRequest Step to the TestCase
- Set the endpoint to the URL you want to upload to
- Set the method to POST (or PUT)
- In the Request Editor add the File you want to upload to the Attachments tab
- Set the Media-Type of the POST Body to the same as the Content-Type of the attached File
- Send the request!
精彩评论