The document summarizes how to use SoapUI Pro to test web services. It introduces SoapUI Pro and how to import a WSDL, create a test suite with test cases and test steps, run tests, and validate responses. An example is provided to request weather data from a public weather service and assert conditions in the response. Attendees are invited to ask any questions.
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
SOAPUI Test Design & Utilities
1. Soap Ui Pro. Presentation
Created By : Akshay Sharma
Wipro Technologies, Pune
10/5/2015 1
2. Synopsis
Introduction to Soap Ui Pro.
How to import project in Soap Ui Pro
How to Create Test Suite, Test Case & Test Steps in Soap UI Pro
How to Run a Test Suite
10/5/2015 2
3. Synopsis – Cont.
How to validate the response of a particular request.
Example
Sample Request & Response
Any Questions ?
10/5/2015 3
4. Introduction to Soap Ui Pro.
Soap UI is an open-source web service testing application for service-oriented architectures (SOA)
and representational state transfers (REST). Its functionality covers web service inspection, invoking,
development, simulation and mocking, functional testing, load and compliance testing. A
commercial version, Soap UI Pro, which mainly focuses on features designed to enhance
productivity, was also developed by eviware software. In 2011, SmartBear Software acquired
eviware.
10/5/2015 4
5. How to import project in Soap Ui Pro
Select File > New Project
10/5/2015 5
6. Check “Create project from” and select “WSDL definition (SOAP)” from the drop down menu
and press OK
10/5/2015 6
7. Browse and select the WSDL we wanted to import to SOAP Ui
10/5/2015 7
8. Confirm the details. You can change the Project Name if you want and press OK button
10/5/2015 8
9. After the WSDL is imported the project looks like the above image.
10/5/2015 9
10. How to Create Test Suite, Test Case &
Test Steps in Soap UI Pro
Right click on the imported project and click on the “Generate TestSuite” Option.
10/5/2015 10
15. There are few more steps you can add for the teststeps according to our need. Some are as follows :
This steps varies if we are using the SOAP Ui and not the SOAP Ui pro version.
10/5/2015 15
16. Here I have added three steps for the demonstration purpose. In case if other steps are require we can add
accordingly.
10/5/2015 16
17. Details Description About the Test Suite,
Test Case & Test Step Creation
Right Click on the root node of the imported WSDL file project and click ‘Generate
TestSuite’ option. Refer slide 10.
Name it accordingly and press OK.
This will generate the TestSuite, TestCase and one TestStep as we can see in slide 14.
10/5/2015 17
18. How to Run Test Suite
Once we have completed the test suite with the test steps we can now run the
test suite but double tap on the TestCase. Please refer below screenshot
Click here to
Run
10/5/2015 18
19. After Completion of the TestCase
Once the testcase have completed successfully, it either get passed or failed.
Refer to the below screenshot for passed Testcase.
10/5/2015 19
20. How to validate the response of the
particular Request.
In order to validate the response right click on the field which we want to
validate in outline tab of the response part and select Add Assertion.
Add the assertion which is required.
10/5/2015 20
21. Description
A successful run presents us the valid response and Testers can provide the assertions to
validate those responses.
In case of error or failure we can refer the server logs for tracking the issue.
Both and request and response needs to be check since there may be the scenarios when
we pass something in request and it populate some other thing in request.
10/5/2015 21
22. Real life example
Take for example if we need to check the weather of the particular place in INDIA, we can
download the “Global Weather” WSDL from internet and open that WSDL in SOAP Ui.
The request looks like as follows,
10/5/2015 22