Wednesday, May 20, 2015

How to test a web service with an attachment by using SoapUI?

"SoapUI is a free and open source cross-platform Functional Testing solution. With an easy-to-use graphical interface, and enterprise-class features, SoapUI allows you to easily and rapidly create and execute automated functional, regression, compliance, and load tests. " 

You can download it and more information from http://www.soapui.org/ .

Here is an example I am using it to test a web service with an attachment.

1. Create a SOAP Project.



2. Right click on the project- test, then choose Add WSDL.








3. Now I am going to send a request with an attachment to the service.
    Double click on Request1 on left side, then there is Request 1 window showing on the right side.
    Click on the Attachment.





4. Click on the button in red circle, then choose the file to attach.



5. Click the run button in red circle. Now you can see the result.



No comments:

Post a Comment