SlideShare una empresa de Scribd logo
1 de 24
Introduction to SOAP UI
and Web-services.
Anil Yadav
2
 What is SOAPUI.?
 What is a web service.?
 Architecture of Web services.
 Elements of web services.
 Message flow in SOAPUI.
 How to create a SOAP UI project and start testing.
 Validating results and adding assertions.
 Features of SOAPUI.
 Real world examples
 SOAP VS RESTful
Q&A
Agenda
3
SoapUI is a free and open source cross-platform Functional Testing solution to test
web services. With an easy-to-use graphical interface , SoapUI allows you to easily
and rapidly create and execute automated functional, regression, security, and
load tests.
SoapUI provides complete test coverage and supports all the standard protocols
and technologies.
Automated testing solution including: data driven tests, load tests, scenario-
based tests.
Built-in reporting capabilities
What is SOAPUI ?
4
SOAP is an XML-based protocol to let applications exchange information over
HTTP.
◦ SOAP stands for Simple Object Access Protocol
◦ SOAP is a communication protocol
◦ SOAP is a format for sending messages
◦ SOAP is platform independent:Java can talk with Perl; Windows applications can talk with Unix applications
◦ SOAP is language independent
Where to find SOAPUI tool ?
https://www.soapui.org/downloads/soapui.html
What is SOAPUI continued…
5
A web service is a method of communication between two electronic devices
over the World Wide Web. A web service is a software function provided at a
network address over the web or the cloud, it is a service that is "always on“.
Web services allows you to expose the functionality of your existing code
over the network. Once it is exposed on the network, other application can
use the functionality of your program.
There are lots of tools available to test web services. SoapUI is one of the
popular tools (other is Apache Axis2) which will help us to test the web
services. In fact you can use the any programing language which is capable of
sending the XML request to the web service provider application over the
http and able to parse and validate the response XML
What is a webservice ?
6
Layered Architecture.
Service Transport
This layer is responsible for transporting messages between applications. Currently, this layer includes Hyper
Text Transport Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), File Transfer Protocol (FTP).Mostly we use
HTTP.
XML Messaging
This layer is responsible for encoding messages in a common XML format so that messages can be understood
at either end. Currently, this layer includes XML-RPC and SOAP.
Service Description
This layer is responsible for describing the public interface to a specific web service. Currently, service
description is handled via the Web Service Description Language (WSDL).
Service Discovery
This layer is responsible for centralizing services into a common registry and providing easy publish/find
functionality. Currently, service discovery is handled via Universal Description, Discovery, and Integration (UDDI).
Architecture of web services
7
Webservices consists of 4 main elements:
WSDL:
WSDL is an XML-based language for describing web services , how to access them , parameters
each operation accepts.
WSDL stands for Web Services Description Language.
WSDL was developed jointly by Microsoft and IBM.
WSDL is an XML based protocol for information exchange in decentralized and distributed
environments.
WSDL is the standard format for describing a web service.
WSDL definition describes how to access a web service and what operations it will perform.
WSDL is an integral part of UDDI, an XML-based worldwide business registry.
Elements of webservices .
8
UDDI:
UDDI is an XML-based standard for describing, publishing, and finding web
services.
UDDI stands for Universal Description, Discovery, and Integration.
UDDI is a specification for a distributed registry of web services.
UDDI is platform independent, open framework..
UDDI uses WSDL to describe interfaces to web services.
UDDI is an open industry initiative enabling businesses to discover each other
and define how they interact over the Internet.
Elements of webservices…
continued
9
Service Provider or Publisher
This is the provider of the web service. The service provider implements the
service and makes it available on the Internet or intranet via UDDI.
Service Requestor or Consumer
This is any consumer of the web service. The requestor utilizes an existing
web service by opening a network connection and sending an XML request.
This is where SOAPUI comes into picture !
Elements of webservices…
continued
10
Message flow in SOAPUI.
11
Message flow in SOAPUI.
12
SoapUI structures functional tests into three levels; TestSuites, TestCases and TestSteps.
Project structure in SOAPUI ?
CREATE SOAPUI PROJECT
Create Test Suite
Create Test Cases
Create steps
13
Prerequistes: SoapUI is installed on your machine.
Step1. Go to File-> New soapUI Project.
How to create a SOAP UI project
14
Step2. In the Add WSDL dialog enter
http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL.
And then Click OK.
.
How to create a SOAP UI project
15
Step3. Now see that the WSDL
was successfully added to the
project by seeing the
operations/services by
expanding the project.
How to create a SOAP UI project
16
Step 4. To Create a request from your WSDL,Click on the plus sign next to the web
service in the navigator to expand. But usually we don’t run from the WSDL but we
create test suite and then call this request as a test case.
NN
How to create a SOAP UI project
Step 5. Double click on the request.
17
How to create a SOAP UI project
Step 6 : Run a request to the webservcie by clicking on the Green arrow head .
18
Validating results and adding assertions
Step 6 : Validate the response on the right side window knows as response window..
19
Validating results and adding assertions
Now that we have the response but how can SOAPUI be sure that it’s the
expected result. So we have to add a validation to the response. In SOAPUI this
is called as “Adding an assertion”.
For an example:
Simple Contains: If response contains a particular expected text/number etc. We
can say its passed. Lets say if response contains 200 OK,I will consider my test
case to be passed.
Response SLA: If response is within a pre defined time limit, We can say its
passed. Lets say if response is within 200ms or 2 seconds, I will consider my test
case to be passed.
20
It can also be used as Load testing and security testing tool.
For load testing.
-From Load test case which is created by default under the Test suite.
-Configure your load test
-Run it and observe the output.
Features of SOAPUI.
21
RESTful web services are light weight, highly scalable and maintainable and
are very commonly used to create APIs for web-based applications.
In REST architecture, a REST Server simply provides access to resources
and the REST client accesses and presents the resources. Here each
resource is identified by URIs/ Global IDs. REST uses various
representations to represent a resource like Text, JSON and XML. JSON is
now the most popular format being used in Web Services.
The following HTTP methods are most commonly used in a REST based
architecture.
GET − Provides a read only access to a resource.
PUT − Used to create a new resource.
DELETE − Used to remove a resource.
POST − Used to update an existing resource or create a new resource.
SOAP vs REST
23
1. If you want to display weather forecast information you don't
need to collect, process and render the data in your application.
You can buy the services from the people (weather.com,
timeanddate.com etc) who already well-established in processing
and publishing such kind of data.
2.Timesofindia.com shows current temperature of your city.
https://services.timeanddate.com
3.Google.com example as HTTP request.
Real world examples
Introduction to soapui  and webservices

Más contenido relacionado

La actualidad más candente

Developing html5 mobile applications using cold fusion 11
Developing html5 mobile applications using cold fusion 11Developing html5 mobile applications using cold fusion 11
Developing html5 mobile applications using cold fusion 11
ColdFusionConference
 
Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]
ColdFusionConference
 
APEX Behind the Scenes by Scott Spendolini
APEX Behind the Scenes by Scott SpendoliniAPEX Behind the Scenes by Scott Spendolini
APEX Behind the Scenes by Scott Spendolini
Enkitec
 
Part 1 implementing a simple_web_service
Part 1 implementing a simple_web_servicePart 1 implementing a simple_web_service
Part 1 implementing a simple_web_service
krishmdkk
 

La actualidad más candente (20)

Oracle OSB Security Enforcement with OWSM
Oracle OSB Security Enforcement with OWSMOracle OSB Security Enforcement with OWSM
Oracle OSB Security Enforcement with OWSM
 
ITB2016 - Building ColdFusion RESTFul Services
ITB2016 - Building ColdFusion RESTFul ServicesITB2016 - Building ColdFusion RESTFul Services
ITB2016 - Building ColdFusion RESTFul Services
 
Proper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino DevelopersProper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino Developers
 
Performance Testing REST APIs
Performance Testing REST APIsPerformance Testing REST APIs
Performance Testing REST APIs
 
Soap ui documentation
Soap ui documentationSoap ui documentation
Soap ui documentation
 
Developing html5 mobile applications using cold fusion 11
Developing html5 mobile applications using cold fusion 11Developing html5 mobile applications using cold fusion 11
Developing html5 mobile applications using cold fusion 11
 
JEE Programming - 05 JSP
JEE Programming - 05 JSPJEE Programming - 05 JSP
JEE Programming - 05 JSP
 
Liferay Devcon presentation on Workflow & Dynamic Forms
Liferay Devcon presentation on Workflow & Dynamic FormsLiferay Devcon presentation on Workflow & Dynamic Forms
Liferay Devcon presentation on Workflow & Dynamic Forms
 
Restful API's with ColdFusion
Restful API's with ColdFusionRestful API's with ColdFusion
Restful API's with ColdFusion
 
Do not automate GUI testing
Do not automate GUI testingDo not automate GUI testing
Do not automate GUI testing
 
Spring boot jpa
Spring boot jpaSpring boot jpa
Spring boot jpa
 
Building ColdFusion And AngularJS Applications
Building ColdFusion And AngularJS ApplicationsBuilding ColdFusion And AngularJS Applications
Building ColdFusion And AngularJS Applications
 
Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]
 
Architecting the Future: Abstractions and Metadata - BSidesKC
Architecting the Future: Abstractions and Metadata - BSidesKCArchitecting the Future: Abstractions and Metadata - BSidesKC
Architecting the Future: Abstractions and Metadata - BSidesKC
 
APEX Behind the Scenes by Scott Spendolini
APEX Behind the Scenes by Scott SpendoliniAPEX Behind the Scenes by Scott Spendolini
APEX Behind the Scenes by Scott Spendolini
 
Part 1 implementing a simple_web_service
Part 1 implementing a simple_web_servicePart 1 implementing a simple_web_service
Part 1 implementing a simple_web_service
 
Reactjs Basics
Reactjs BasicsReactjs Basics
Reactjs Basics
 
Hidden Gems in ColdFusion 11
Hidden Gems in ColdFusion 11Hidden Gems in ColdFusion 11
Hidden Gems in ColdFusion 11
 
JEE Programming - 07 EJB Programming
JEE Programming - 07 EJB ProgrammingJEE Programming - 07 EJB Programming
JEE Programming - 07 EJB Programming
 
Restful api design
Restful api designRestful api design
Restful api design
 

Similar a Introduction to soapui and webservices

Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Kevin Lee
 
Service Oriented Architecture Updated Luqman
Service Oriented Architecture Updated  LuqmanService Oriented Architecture Updated  Luqman
Service Oriented Architecture Updated Luqman
guesteb791b
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NET
Ponraj
 

Similar a Introduction to soapui and webservices (20)

Web services
Web servicesWeb services
Web services
 
Web services
Web servicesWeb services
Web services
 
Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics
 
Web services and SOA
Web services and SOAWeb services and SOA
Web services and SOA
 
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Concepts
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and development
 
Wt unit 6 ppts web services
Wt unit 6 ppts web servicesWt unit 6 ppts web services
Wt unit 6 ppts web services
 
Service Oriented Architecture Updated Luqman
Service Oriented Architecture Updated  LuqmanService Oriented Architecture Updated  Luqman
Service Oriented Architecture Updated Luqman
 
Web programming
Web programmingWeb programming
Web programming
 
Web service implementation
Web service implementationWeb service implementation
Web service implementation
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NET
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptx
 
Web services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGigWeb services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGig
 
WebServices Basic Introduction
WebServices Basic IntroductionWebServices Basic Introduction
WebServices Basic Introduction
 
Overview of web services
Overview of web servicesOverview of web services
Overview of web services
 
Web Services.pptx
Web Services.pptxWeb Services.pptx
Web Services.pptx
 
Unit 6 SDET Web Services Testing.pptx
Unit 6 SDET Web Services Testing.pptxUnit 6 SDET Web Services Testing.pptx
Unit 6 SDET Web Services Testing.pptx
 
WebServices using Soap
WebServices using SoapWebServices using Soap
WebServices using Soap
 

Último

Último (20)

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 

Introduction to soapui and webservices

  • 1. Introduction to SOAP UI and Web-services. Anil Yadav
  • 2. 2  What is SOAPUI.?  What is a web service.?  Architecture of Web services.  Elements of web services.  Message flow in SOAPUI.  How to create a SOAP UI project and start testing.  Validating results and adding assertions.  Features of SOAPUI.  Real world examples  SOAP VS RESTful Q&A Agenda
  • 3. 3 SoapUI is a free and open source cross-platform Functional Testing solution to test web services. With an easy-to-use graphical interface , SoapUI allows you to easily and rapidly create and execute automated functional, regression, security, and load tests. SoapUI provides complete test coverage and supports all the standard protocols and technologies. Automated testing solution including: data driven tests, load tests, scenario- based tests. Built-in reporting capabilities What is SOAPUI ?
  • 4. 4 SOAP is an XML-based protocol to let applications exchange information over HTTP. ◦ SOAP stands for Simple Object Access Protocol ◦ SOAP is a communication protocol ◦ SOAP is a format for sending messages ◦ SOAP is platform independent:Java can talk with Perl; Windows applications can talk with Unix applications ◦ SOAP is language independent Where to find SOAPUI tool ? https://www.soapui.org/downloads/soapui.html What is SOAPUI continued…
  • 5. 5 A web service is a method of communication between two electronic devices over the World Wide Web. A web service is a software function provided at a network address over the web or the cloud, it is a service that is "always on“. Web services allows you to expose the functionality of your existing code over the network. Once it is exposed on the network, other application can use the functionality of your program. There are lots of tools available to test web services. SoapUI is one of the popular tools (other is Apache Axis2) which will help us to test the web services. In fact you can use the any programing language which is capable of sending the XML request to the web service provider application over the http and able to parse and validate the response XML What is a webservice ?
  • 6. 6 Layered Architecture. Service Transport This layer is responsible for transporting messages between applications. Currently, this layer includes Hyper Text Transport Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), File Transfer Protocol (FTP).Mostly we use HTTP. XML Messaging This layer is responsible for encoding messages in a common XML format so that messages can be understood at either end. Currently, this layer includes XML-RPC and SOAP. Service Description This layer is responsible for describing the public interface to a specific web service. Currently, service description is handled via the Web Service Description Language (WSDL). Service Discovery This layer is responsible for centralizing services into a common registry and providing easy publish/find functionality. Currently, service discovery is handled via Universal Description, Discovery, and Integration (UDDI). Architecture of web services
  • 7. 7 Webservices consists of 4 main elements: WSDL: WSDL is an XML-based language for describing web services , how to access them , parameters each operation accepts. WSDL stands for Web Services Description Language. WSDL was developed jointly by Microsoft and IBM. WSDL is an XML based protocol for information exchange in decentralized and distributed environments. WSDL is the standard format for describing a web service. WSDL definition describes how to access a web service and what operations it will perform. WSDL is an integral part of UDDI, an XML-based worldwide business registry. Elements of webservices .
  • 8. 8 UDDI: UDDI is an XML-based standard for describing, publishing, and finding web services. UDDI stands for Universal Description, Discovery, and Integration. UDDI is a specification for a distributed registry of web services. UDDI is platform independent, open framework.. UDDI uses WSDL to describe interfaces to web services. UDDI is an open industry initiative enabling businesses to discover each other and define how they interact over the Internet. Elements of webservices… continued
  • 9. 9 Service Provider or Publisher This is the provider of the web service. The service provider implements the service and makes it available on the Internet or intranet via UDDI. Service Requestor or Consumer This is any consumer of the web service. The requestor utilizes an existing web service by opening a network connection and sending an XML request. This is where SOAPUI comes into picture ! Elements of webservices… continued
  • 12. 12 SoapUI structures functional tests into three levels; TestSuites, TestCases and TestSteps. Project structure in SOAPUI ? CREATE SOAPUI PROJECT Create Test Suite Create Test Cases Create steps
  • 13. 13 Prerequistes: SoapUI is installed on your machine. Step1. Go to File-> New soapUI Project. How to create a SOAP UI project
  • 14. 14 Step2. In the Add WSDL dialog enter http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL. And then Click OK. . How to create a SOAP UI project
  • 15. 15 Step3. Now see that the WSDL was successfully added to the project by seeing the operations/services by expanding the project. How to create a SOAP UI project
  • 16. 16 Step 4. To Create a request from your WSDL,Click on the plus sign next to the web service in the navigator to expand. But usually we don’t run from the WSDL but we create test suite and then call this request as a test case. NN How to create a SOAP UI project Step 5. Double click on the request.
  • 17. 17 How to create a SOAP UI project Step 6 : Run a request to the webservcie by clicking on the Green arrow head .
  • 18. 18 Validating results and adding assertions Step 6 : Validate the response on the right side window knows as response window..
  • 19. 19 Validating results and adding assertions Now that we have the response but how can SOAPUI be sure that it’s the expected result. So we have to add a validation to the response. In SOAPUI this is called as “Adding an assertion”. For an example: Simple Contains: If response contains a particular expected text/number etc. We can say its passed. Lets say if response contains 200 OK,I will consider my test case to be passed. Response SLA: If response is within a pre defined time limit, We can say its passed. Lets say if response is within 200ms or 2 seconds, I will consider my test case to be passed.
  • 20. 20 It can also be used as Load testing and security testing tool. For load testing. -From Load test case which is created by default under the Test suite. -Configure your load test -Run it and observe the output. Features of SOAPUI.
  • 21. 21 RESTful web services are light weight, highly scalable and maintainable and are very commonly used to create APIs for web-based applications. In REST architecture, a REST Server simply provides access to resources and the REST client accesses and presents the resources. Here each resource is identified by URIs/ Global IDs. REST uses various representations to represent a resource like Text, JSON and XML. JSON is now the most popular format being used in Web Services. The following HTTP methods are most commonly used in a REST based architecture. GET − Provides a read only access to a resource. PUT − Used to create a new resource. DELETE − Used to remove a resource. POST − Used to update an existing resource or create a new resource. SOAP vs REST
  • 22.
  • 23. 23 1. If you want to display weather forecast information you don't need to collect, process and render the data in your application. You can buy the services from the people (weather.com, timeanddate.com etc) who already well-established in processing and publishing such kind of data. 2.Timesofindia.com shows current temperature of your city. https://services.timeanddate.com 3.Google.com example as HTTP request. Real world examples

Notas del editor

  1. Give example of TOI and Time and Date. Search and show the webservices of time and date
  2. An example on google API for Rest webservices http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false
  3. Start a quiz!