soapui test design & utilities
TRANSCRIPT
05/02/2023 1
Soap Ui Pro. PresentationCreated By : Akshay Sharma
Wipro Technologies, Pune
05/02/2023 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
05/02/2023 3
Synopsis – Cont.
How to validate the response of a particular request.
Example
Sample Request & Response
Any Questions ?
05/02/2023 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.
05/02/2023 5
How to import project in Soap Ui Pro
Select File > New Project
05/02/2023 6
Check “Create project from” and select “WSDL definition (SOAP)” from the drop down menu and press OK
05/02/2023 7
Browse and select the WSDL we wanted to import to SOAP Ui
05/02/2023 8
Confirm the details. You can change the Project Name if you want and press OK button
05/02/2023 9
After the WSDL is imported the project looks like the above image.
05/02/2023 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.
05/02/2023 11
Click OK
05/02/2023 12
Rename the TestSuite if required.
05/02/2023 13
Once the TestSuite is created it will look like the above image.
05/02/2023 14
TestSuite TestCase TestSteps
05/02/2023 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.
05/02/2023 16
Here I have added three steps for the demonstration purpose. In case if other steps are require we can add accordingly.
05/02/2023 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.
05/02/2023 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
05/02/2023 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.
05/02/2023 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.
05/02/2023 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.
05/02/2023 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,
05/02/2023 23
Request : Global Weather <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET">
<soapenv:Header/> <soapenv:Body> <web:GetWeather> <!--Optional:--> <web:CityName>Jaipur</web:CityName> <!--Optional:--> <web:CountryName>India</web:CountryName> </web:GetWeather> </soapenv:Body> </soapenv:Envelope>
05/02/2023 24
Response: Global Weather <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body> <GetWeatherResponse xmlns="http://www.webserviceX.NET"> <CurrentWeather> <Location>Jaipur / Sanganer, India (VIJP) 26-49N 075-48E 390M</Location> <Time>Jun 22, 2015 - 06:00 AM EDT / 2015.06.22 1000 UTC</Time> <Visibility> 2 mile(s):0</Visibility> <SkyConditions> partly cloudy</SkyConditions> <Temperature> 102 F (39 C)</Temperature> <Status>Success</Status> </CurrentWeather> </GetWeatherResponse> </soap:Body> </soap:Envelope>
05/02/2023 26
Thank you..