SlideShare a Scribd company logo
How to test WebServices
using SOAP UI
What is a WebService?
• Definition: The term Web services describes a standardized way of integrating Web-based
applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol
backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for
describing the services available and UDDI is used for listing what services are available.
• Usage:
Amazon Web Services offers a complete set of infrastructure and application services that enable
you to run virtually everything in the cloud: from enterprise applications and big data projects to social
games and mobile apps.
A report from 2012 done by a web analytics firm has revealed that web sites using cloud computing
outfit Amazon Web Services (AWS) are visited daily by a third of all internet users worldwide.
Travel Holdings WebServices
Our web services are mostly oriented to the travelling industry exposing our API in order to:
• Search for products (mainly hotels)
• Get hotel details
• Book reservations
• Manage previous reservations
Internally we are also using where possible as much WS as we can in order to push our solution
development to be more an more service oriented.
Commercially we are called by an average of 2 million searches per hour allowing our clients to book an
average of almost 10000 reservations per day.
What is SoapUI?
http://www.soapui.org/
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. In a single test environment,
SoapUI provides complete test coverage and supports all the standard protocols and technologies.
There are simply no limits to what you can do with your tests. Meet SoapUI, the world's most complete
testing tool!
What can it do?
• Automated testing solution including: data driven tests, load tests, scenario-based tests
• MockServices feature gives the unique ability to mimic Web services and create/run Functional and
Load Tests against them even before they are implemented.
• Built-in reporting capabilities
SoapUI Test Structure
SoapUI structures functional tests into three levels; TestSuites, TestCases and TestSteps.
1. A TestSuite is a collection of TestCases that can be used for grouping functional tests into logical
units. Any number of TestSuites can be created inside a soapUI project to support massive testing
scenarios.
2. A TestCase is a collection of TestSteps that are assembled to test some specific aspect of your
service(s). You can add any number of TestCases to a containing TestSuite and even modularize
them to call each other for complex testing scenarios.
3. TestSteps are the "building blocks" of functional tests in soapUI. They are added to a TestCase and
used control the flow of execution and validate the functionality of the service(s) to be tested.
SoapUI Test Structure
A test is added by creating a new project and setting the wsdl page of your WS application. For
example we used public WS which provides Country Details:
http://www.webservicex.net/country.asmx?WSDL
SoapUI Test Structure
When adding a new project, all of the WSs
methods will be loaded with sample (empty)
requests already created.
Opening such a request will show you the
editor of the .xml file which is to be sent to the
web server.
SoapUI gives you possibility to see the request
in the editor as xml, raw data, Outline and
Form, making it easier to manually edit the
data you plan to send to the WS server.
The response received is also shown (on the
right side of the tool’s layout) as xml, raw data,
Outline or Form, making it easier to read.
SoapUI Test Structure
Data Driven Tests
http://www.soapui.org/
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. In a single test environment,
SoapUI provides complete test coverage and supports all the standard protocols and technologies.
There are simply no limits to what you can do with your tests. Meet SoapUI, the world's most complete
testing tool!
What can it do?
• Automated testing solution including: data driven tests, load tests, scenario-based tests
• MockServices feature gives the unique ability to mimic Web services and create/run Functional and
Load Tests against them even before they are implemented.
• Built-in reporting capabilities
Data Driven Example
http://www.webservicex.net/uszip.asmx?WSDL
We used a public WS which we found on the internet. This is returning the details of specific ZIP codes
from United States which is a good opportunity for us to validate if data received from our clients is valid
or not.
Extracting from our DB random ZIP Codes, City Names and State Codes we can validate if City Name
and State Code are matching the ZIP code by using it as a request and assert if the result is correct. All
this test data we added into an Excel file which we used as DataSource for our test.
Data Driven Example
DataSource will require the file location from you and also what are the Test Properties to be used from
the file.
These declared TestProperties are actually the parameters you will use for the requests or for the
assertion.
When adding a new TestRequest you will have the possibility to replace the single parameter from the
request with a Property from the DataSource by right-clicking the field:
Data Driven Example
In the same TestRequest you can add an assertion and choosing Property Content / XPath Match in
order to choose specific element from the response to be validated against specific TestProperty from
the DataSource:
Data Driven Example
In the assertion you will need to replace the hardcoded value with the TestProperty from the
DataSource:
Data Driven Example
Now your test will be ready and will validate request parameters with specific values from the response,
all this according to the .xls DataSource.
Thank You!

More Related Content

What's hot (20)

PPTX
Data weave
Adithya-kuchan
 
KEY
SharePoint 2010 Client Object Model
G. Scott Singleton
 
PPT
Microsoft Azure
Dima Maleev
 
PPTX
Integration of mule esb with microsoft azure
sivachandra mandalapu
 
PPT
Asp.net server controls
Raed Aldahdooh
 
PPTX
Integrating SharePoint 2010 and Visual Studio Lightswitch
Rob Windsor
 
PPTX
Query Operation in Microsoft SharePoint using Mule ESB
Sanjeet Pandey
 
PPTX
Amazone s3 in mule
Ramakrishna kapa
 
PPT
Less07 2 e_testermodule_6
Suresh Mishra
 
PPTX
Automatic documentation with mule
F K
 
PDF
Mean Stack Vs Meteor js
Prem Sanil
 
PPT
Mule cloud hub console overview
D.Rajesh Kumar
 
PPT
Olap
preksha33
 
PPT
Less03 2 e_testermodule_2
Suresh Mishra
 
PPTX
Introduction to the SharePoint Client Object Model and REST API
Rob Windsor
 
PPT
New Features Of ASP.Net 4 0
Dima Maleev
 
PDF
Using QLIK with AWS & Python
Bruce Jenks
 
PDF
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
PPT
Mule data weave with flowref lookup
D.Rajesh Kumar
 
PPTX
SharePoint Client Object Model (CSOM)
Kashif Imran
 
Data weave
Adithya-kuchan
 
SharePoint 2010 Client Object Model
G. Scott Singleton
 
Microsoft Azure
Dima Maleev
 
Integration of mule esb with microsoft azure
sivachandra mandalapu
 
Asp.net server controls
Raed Aldahdooh
 
Integrating SharePoint 2010 and Visual Studio Lightswitch
Rob Windsor
 
Query Operation in Microsoft SharePoint using Mule ESB
Sanjeet Pandey
 
Amazone s3 in mule
Ramakrishna kapa
 
Less07 2 e_testermodule_6
Suresh Mishra
 
Automatic documentation with mule
F K
 
Mean Stack Vs Meteor js
Prem Sanil
 
Mule cloud hub console overview
D.Rajesh Kumar
 
Olap
preksha33
 
Less03 2 e_testermodule_2
Suresh Mishra
 
Introduction to the SharePoint Client Object Model and REST API
Rob Windsor
 
New Features Of ASP.Net 4 0
Dima Maleev
 
Using QLIK with AWS & Python
Bruce Jenks
 
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
Mule data weave with flowref lookup
D.Rajesh Kumar
 
SharePoint Client Object Model (CSOM)
Kashif Imran
 

Viewers also liked (20)

PPTX
Scatter gather in mule
Mohammed625
 
PPT
Mule real world old
Mohammed625
 
PPTX
Webservice with vm in mule
Mohammed625
 
PPTX
Creating dynamic json
Mohammed625
 
PPTX
Presentation
Mohammed625
 
PPTX
Deploying and running in mule standalone
Mohammed625
 
PPT
Mule technology
Mohammed625
 
PPT
Mule esb introduction
Mohammed625
 
PPT
Mule overview
Mohammed625
 
PPTX
Simple groovy example in mule
Mohammed625
 
PPTX
Mule with drools
Mohammed625
 
PPTX
Mule with stored procedure
Mohammed625
 
PPT
Java multithreading
Mohammed625
 
PPTX
Xml to xml transformation in mule
Mohammed625
 
PDF
Nepse Technical Analysis September 6 - September 10, 2015
Kriti Capital & Investments Ltd.
 
PPTX
Destin X (1)
Pratik Yadav
 
PPTX
Presentation1
John Johnson
 
PPT
TUGAS SLIDE SIM
winynurika yuwantari
 
PDF
Presentazione MORI SAURO ROTTAMI Srl
MORI SAURO ROTTAMI Srl
 
PPTX
E-Learning Contents Producing Training Program for Trainees from Iran
Hori Masumi
 
Scatter gather in mule
Mohammed625
 
Mule real world old
Mohammed625
 
Webservice with vm in mule
Mohammed625
 
Creating dynamic json
Mohammed625
 
Presentation
Mohammed625
 
Deploying and running in mule standalone
Mohammed625
 
Mule technology
Mohammed625
 
Mule esb introduction
Mohammed625
 
Mule overview
Mohammed625
 
Simple groovy example in mule
Mohammed625
 
Mule with drools
Mohammed625
 
Mule with stored procedure
Mohammed625
 
Java multithreading
Mohammed625
 
Xml to xml transformation in mule
Mohammed625
 
Nepse Technical Analysis September 6 - September 10, 2015
Kriti Capital & Investments Ltd.
 
Destin X (1)
Pratik Yadav
 
Presentation1
John Johnson
 
TUGAS SLIDE SIM
winynurika yuwantari
 
Presentazione MORI SAURO ROTTAMI Srl
MORI SAURO ROTTAMI Srl
 
E-Learning Contents Producing Training Program for Trainees from Iran
Hori Masumi
 
Ad

Similar to WebServices using Soap (20)

PPTX
Testing soapui
Shahid Shaik
 
PDF
White paper ready api
Nithin Bijjala
 
PPTX
Tools that have made cloud testing easy
BugRaptors
 
PPTX
WebServices Basic Introduction
Shahid Shaik
 
PPT
Testing soa, web services and application development framework applications
InSync Conference
 
PPTX
Soap UI and postman
Tushar Agarwal
 
PPT
Netserv Software Testing
sthicks14
 
PPT
Introduction of WebServices
Khasim Saheb
 
PPTX
Web Services.pptx
ShaikRasool27
 
PPT
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
HusseinWassof
 
PPTX
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
kmani5
 
PPT
Introduction to soapui and webservices
Anil Yadav
 
DOC
Soap ui documentation
Follower Test
 
DOCX
markfinleyResumeMarch2016
Mark Finley
 
PPTX
Application integration framework & Adaptor ppt
Aditya Negi
 
PDF
How to Create Web App With Simple Step by Step Process
Debuggers Studio
 
PDF
App Service Web
Lisa Muthukumar
 
PPT
Technology Overview
Liran Zelkha
 
PPTX
web services
Anand kalla
 
Testing soapui
Shahid Shaik
 
White paper ready api
Nithin Bijjala
 
Tools that have made cloud testing easy
BugRaptors
 
WebServices Basic Introduction
Shahid Shaik
 
Testing soa, web services and application development framework applications
InSync Conference
 
Soap UI and postman
Tushar Agarwal
 
Netserv Software Testing
sthicks14
 
Introduction of WebServices
Khasim Saheb
 
Web Services.pptx
ShaikRasool27
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
HusseinWassof
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
kmani5
 
Introduction to soapui and webservices
Anil Yadav
 
Soap ui documentation
Follower Test
 
markfinleyResumeMarch2016
Mark Finley
 
Application integration framework & Adaptor ppt
Aditya Negi
 
How to Create Web App With Simple Step by Step Process
Debuggers Studio
 
App Service Web
Lisa Muthukumar
 
Technology Overview
Liran Zelkha
 
web services
Anand kalla
 
Ad

Recently uploaded (20)

PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 

WebServices using Soap

  • 1. How to test WebServices using SOAP UI
  • 2. What is a WebService? • Definition: The term Web services describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for describing the services available and UDDI is used for listing what services are available. • Usage: Amazon Web Services offers a complete set of infrastructure and application services that enable you to run virtually everything in the cloud: from enterprise applications and big data projects to social games and mobile apps. A report from 2012 done by a web analytics firm has revealed that web sites using cloud computing outfit Amazon Web Services (AWS) are visited daily by a third of all internet users worldwide.
  • 3. Travel Holdings WebServices Our web services are mostly oriented to the travelling industry exposing our API in order to: • Search for products (mainly hotels) • Get hotel details • Book reservations • Manage previous reservations Internally we are also using where possible as much WS as we can in order to push our solution development to be more an more service oriented. Commercially we are called by an average of 2 million searches per hour allowing our clients to book an average of almost 10000 reservations per day.
  • 4. What is SoapUI? http://www.soapui.org/ 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. In a single test environment, SoapUI provides complete test coverage and supports all the standard protocols and technologies. There are simply no limits to what you can do with your tests. Meet SoapUI, the world's most complete testing tool! What can it do? • Automated testing solution including: data driven tests, load tests, scenario-based tests • MockServices feature gives the unique ability to mimic Web services and create/run Functional and Load Tests against them even before they are implemented. • Built-in reporting capabilities
  • 5. SoapUI Test Structure SoapUI structures functional tests into three levels; TestSuites, TestCases and TestSteps. 1. A TestSuite is a collection of TestCases that can be used for grouping functional tests into logical units. Any number of TestSuites can be created inside a soapUI project to support massive testing scenarios. 2. A TestCase is a collection of TestSteps that are assembled to test some specific aspect of your service(s). You can add any number of TestCases to a containing TestSuite and even modularize them to call each other for complex testing scenarios. 3. TestSteps are the "building blocks" of functional tests in soapUI. They are added to a TestCase and used control the flow of execution and validate the functionality of the service(s) to be tested.
  • 6. SoapUI Test Structure A test is added by creating a new project and setting the wsdl page of your WS application. For example we used public WS which provides Country Details: http://www.webservicex.net/country.asmx?WSDL
  • 7. SoapUI Test Structure When adding a new project, all of the WSs methods will be loaded with sample (empty) requests already created. Opening such a request will show you the editor of the .xml file which is to be sent to the web server. SoapUI gives you possibility to see the request in the editor as xml, raw data, Outline and Form, making it easier to manually edit the data you plan to send to the WS server. The response received is also shown (on the right side of the tool’s layout) as xml, raw data, Outline or Form, making it easier to read.
  • 9. Data Driven Tests http://www.soapui.org/ 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. In a single test environment, SoapUI provides complete test coverage and supports all the standard protocols and technologies. There are simply no limits to what you can do with your tests. Meet SoapUI, the world's most complete testing tool! What can it do? • Automated testing solution including: data driven tests, load tests, scenario-based tests • MockServices feature gives the unique ability to mimic Web services and create/run Functional and Load Tests against them even before they are implemented. • Built-in reporting capabilities
  • 10. Data Driven Example http://www.webservicex.net/uszip.asmx?WSDL We used a public WS which we found on the internet. This is returning the details of specific ZIP codes from United States which is a good opportunity for us to validate if data received from our clients is valid or not. Extracting from our DB random ZIP Codes, City Names and State Codes we can validate if City Name and State Code are matching the ZIP code by using it as a request and assert if the result is correct. All this test data we added into an Excel file which we used as DataSource for our test.
  • 11. Data Driven Example DataSource will require the file location from you and also what are the Test Properties to be used from the file. These declared TestProperties are actually the parameters you will use for the requests or for the assertion. When adding a new TestRequest you will have the possibility to replace the single parameter from the request with a Property from the DataSource by right-clicking the field:
  • 12. Data Driven Example In the same TestRequest you can add an assertion and choosing Property Content / XPath Match in order to choose specific element from the response to be validated against specific TestProperty from the DataSource:
  • 13. Data Driven Example In the assertion you will need to replace the hardcoded value with the TestProperty from the DataSource:
  • 14. Data Driven Example Now your test will be ready and will validate request parameters with specific values from the response, all this according to the .xls DataSource. Thank You!