INTRO TO SOA Testing & SOAP UI
MANOJ MATHPAL | SOFTWARE CONSULTANT
Knoldus Software LLP
What is SOA
Why SOA Testing
Web Services Types
SOAP Vs REST
Tools for SOA Testing
What is SOAP UI Pro
SOAP UI Pro features
SOAP UI Testing Framework
Demo
AGENDA
Service Oriented Architecture (SOA)?
3
SOA is not a product or technology. Architectural approach to creating systems built from autonomous services based on service oriented principles
Service Oriented Principles
✓ Standardized service contracts
✓ Loose coupling
✓ Service abstraction
✓ Service reusability
✓ Service autonomy
✓ Platform independent
Why SOA Testing
4
Component level testing
Early defect identification
Early to market
Maximise ROI in testing
Quality excellence and Test efficiency
Increase test coverage
Maximize ROI in testing
Web Services Types
5
Web Services can be implemented in different ways, and the following two are the popular implementations approaches.
SOAP SOAP is a standard protocol defined by the W3C Standard for sending and receiving web service requests and responses. SOAP uses the XML format to send and receive the request and hence the data is platform independent data. SOAP messages are exchanged between the provider applications and receiving application within the SOAP envelops.
REST REST means Representational State Transfer, it is an architecture that generally runs over HTTP. REST is an alternative to SOAP (Simple Object Access Protocol) and instead of using XML for request REST uses simple URL in some cases. Unlike SOAP, RESTFUL applications uses HTTP build in headers to carry meta-information. Rest API supports both XML and JSON format. It is usually preferred for mobile and web apps as it makes app work faster and smoother
SOAP Vs REST
REST stands for Representational State Transfer
No WS-Standards are available
Support is available for XML, JSON
REST is light weighted and sends only actual message that needs to exchange
REST is stateless
SOAP stands for Simple Object Access Protocol
WS-Standards are available for security, transaction management etc.
Support only XML
SOAP has overhead of sending soap envelope, header along with actual soap message
Tools for SOA Testing
Company Tool DescriptionITKO (CA) LISA One of the early vendors of specialized testing and
automation tool for SOA. First vendor to launch virtualization capability as a standalone tool
Parasoft SOA Test One of the early starters in SOA test automation space. It has Application lifecycle Management (ALM),
virtualization etc. Good overall support for product
GreenHat GH Tester
HP Service Test Maturing rapidly in-terms of features and maturity and is in a position to challenge niche vendors. Seamless
integration with HP toolset for GUI automation is a key strength and differentiator
Open Source/Licensed
SOAP UI/SOAP UI
Pro
Available in both open source and licensed version. Has capability of load testing along with functional
automation
What is SOAP UI Pro
8
A open source/licensed Functional Testing solution from SmartBear. With an user friendly interface SOAP UI provides capability of creating and executing of automated functional test and regression suite. On successful test execution tool provides execution report in multiple formats. SOAP UI has also extended its capability to do Load testing, security testing and compliance testing.
SOAP UI Pro Test Structure
SOAP UI structures functional test into three levels; Test Suites, Test Cases and Test StepsTest suite is a collection of test case grouped logically together. Multiple test suite can be created inside SOAP UI project. For e.g. different test suites can be created for positive and negative scenarioTest case is a collection of Test Steps grouped together to build complete frameworkTest steps are building blocks of test cases. For e.g. SOAP Request, Datasource, Datasink, DataSourceLoop, Assertions, Groovy etc.
SOAP UI Pro Features
9
✓ Test data driven testing approach
✓ Load Testing
✓ Mock creation to mimic the web service response
✓ Support of SOAP, Rest, JMS, MQ etc.
✓ Service autonomy
✓ Integration capabilities with other softwares
✓ SOAP UI inbuilt framework capability
Security Testing
SOAP UI Testing Framework
REST/SOAPService
MQ Service Provider
Testers
Driver data
Test data
Requests Framework
SoapUIHermes JMS
DB
SOAP/REST RequestSOAP/REST Response
JDBC Request
Query Results
ReportsAutomated e-mail
SUT
JMS
Test Data Source
Configuration
Demo
Thank You