soapui test design & utilities

26
Soap Ui Pro. Presentation Created By : Akshay Sharma Wipro Technologies, Pune 06/19/2022 1

Upload: akshay-sharma

Post on 11-Apr-2017

298 views

Category:

Software


0 download

TRANSCRIPT

Page 1: SOAPUI Test Design & Utilities

05/02/2023 1

Soap Ui Pro. PresentationCreated By : Akshay Sharma

Wipro Technologies, Pune

Page 2: SOAPUI Test Design & Utilities

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

Page 3: SOAPUI Test Design & Utilities

05/02/2023 3

Synopsis – Cont.

How to validate the response of a particular request.

Example

Sample Request & Response

Any Questions ?

Page 4: SOAPUI Test Design & Utilities

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.

Page 5: SOAPUI Test Design & Utilities

05/02/2023 5

How to import project in Soap Ui Pro

Select File > New Project

Page 6: SOAPUI Test Design & Utilities

05/02/2023 6

Check “Create project from” and select “WSDL definition (SOAP)” from the drop down menu and press OK

Page 7: SOAPUI Test Design & Utilities

05/02/2023 7

Browse and select the WSDL we wanted to import to SOAP Ui

Page 8: SOAPUI Test Design & Utilities

05/02/2023 8

Confirm the details. You can change the Project Name if you want and press OK button

Page 9: SOAPUI Test Design & Utilities

05/02/2023 9

After the WSDL is imported the project looks like the above image.

Page 10: SOAPUI Test Design & Utilities

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.

Page 11: SOAPUI Test Design & Utilities

05/02/2023 11

Click OK

Page 12: SOAPUI Test Design & Utilities

05/02/2023 12

Rename the TestSuite if required.

Page 13: SOAPUI Test Design & Utilities

05/02/2023 13

Once the TestSuite is created it will look like the above image.

Page 14: SOAPUI Test Design & Utilities

05/02/2023 14

TestSuite TestCase TestSteps

Page 15: SOAPUI Test Design & Utilities

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.

Page 16: SOAPUI Test Design & Utilities

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.

Page 17: SOAPUI Test Design & Utilities

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.

Page 18: SOAPUI Test Design & Utilities

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

Page 19: SOAPUI Test Design & Utilities

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.

Page 20: SOAPUI Test Design & Utilities

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.

Page 21: SOAPUI Test Design & Utilities

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.

Page 22: SOAPUI Test Design & Utilities

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,

Page 23: SOAPUI Test Design & Utilities

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>

Page 24: SOAPUI Test Design & Utilities

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>

Page 25: SOAPUI Test Design & Utilities

05/02/2023 25

Any Questions ?

Revert me Back on:- [email protected]

Page 26: SOAPUI Test Design & Utilities

05/02/2023 26

Thank you..