SOAP UI is a standard desktop application
for testing the Web Services projects. It provides full support for debugging,
developing and testing of your web services applications.
The tool support data driven development and
also provides platform for creating test suites where you can create services
for regression testing. For example if you want to test the complete flow of
your SOA application, you can create Test Suites using SOAP UI and can perform
end to end testing of your applications. The test suits can be configured to
run in multiple environments (dev, sit, uat or production).
Okay, let’s start the working on SOAPUI. I
will show you the simple webservice testing that I developed in my last blog.
Prerequisites:
-You have developed your webservices
-Webservice is ready and running on your
local server
-Installed SOAP UI tool
Step-1
Download the SOAPUI tool
Step-2
Open
the soap UI Tool
Setp-3
Right
click on the project and choose New SOAP Project. Import Project is the option
for adding existing web service project.
Step-4
Give
the name for your new SOAP Project and add the WSDL url.
Step-5
Enter
the localhost and port number, the name and location of your schema + .wsdl ex.
http://localhost:8081/springproject/country/countryLookup.wsdl
Step-6
Click
OK
Step-7
Click
Yes on the Create default requests for all operations. This will add all the mandatory
and option request parameters from your webservice.
Step-8
The
new webservice will now be created in the project and automatically has one
request
Step-9
Double
click Request 1
Step-10
The
left side of the new window displays the request for the Webservices Inputs.
Enter
the input data in place of “?”.
Step-11
You
can have both mandatory and required inputs for your service. You can ignore
option inputs.
(If
you have some requirement of implementing security with the service. That can
be implemented using header tag.)
Step-12
Now
once you have provided the required inputs submit the request.
Step-13
Click
the Play button at the upper left portion of the request window .
The
right side should now display the response
Step-14
After
the success of the response message right click and select validate
Step-15
It
should show a Validation OK
Once the Validation shows as OK. It’s all
well.
Comments
Post a Comment