SlideShare a Scribd company logo
1 of 7
Download to read offline
Nithin Bijjala
White Paper- Web Services Automation Testing
using SoapUI NG Pro Tool
Abstract
 Testing team always faces difficulties while dealing with Web services
 Web services usually do not have visible, user-friendly interfaces, so performing
manual testing is always not easy.
 Web services hide all of the details of their underlying business logic and appear
as code in response and request to the Testers. It can be hard for testers to know
if they are getting what they should from a Web service.
 It’s always challenging for testers to find all of the right inputs to exhaustively
test Web services, but it’s crucial to check if business logic is correctly
implemented.
 Most popularly used tool for testing Web services is SoapUI which allows you to
test web services manually as well as using automation suite.
In short, businesses need a comprehensive methodology inclusive of tools and
automation framework for designing and executing thorough Web services testing. This
white paper outlines a data driven automation framework which can be developed in
SoapUI which helps testing teams and business owners design, setup and execute
comprehensive tests for testing services quickly and run them in lights-out mode
without having exceptional automation skills.
22/06/2016
Artha Data Solutions | www.thinkartha.com
1
Nithin Bijjala
Introduction
Service Oriented Architecture (SOA) is the emerging paradigm for the development of
distributed applications that are easy to integrate and flexible to fast changes of the
environment and of user requirements. IT technology trend is that the business and
social welfare are more and more depending on the proper functioning of services
delivered over the Net. Companies need to have an eye on a provided service, against
accidental or intentional faults. Because of their pervasive distribution, company must
offer very strict guarantees in this regard, even for services that are not dealing with
safety-critical or money-critical applications.
For this reason, it is imperative that companies are thoroughly tested before
deployment. Essentially, a company collects a set of functions, whose invocation syntax
is defined in the associated WSDL document. The WSDL formalized
description of service operations and of their input and output parameters can be in fact
taken as a reference for black box testing at the service interface.
Soap UI tool can automatically derive skeletons of test cases and provide support for
their execution and result analysis which ultimately results in saving human efforts, time
and money.
I. WEB SERVICES AUTOMATION FRAMEWORK
The Automated Framework for testing Web services evolved to handle the many
business scenarios and use cases required for testing large volumes of data passing
through Web services. The Automation Framework interacts with external data sources
to import data, pass it to XML-formatted requests, and process the requests. The
framework automatically generates reports of test runs and shows the results in an easy
to-read text format.
 Test teams appreciate these key advantages that the Automation Framework
enables
 Quick and easy development of reusable, automated test scripts
 Automatic execution of regression tests on different data sets
 Significant suppression in maintenance costs can be used by new team members
using consistent and easy design, development, and execution techniques
22/06/2016
Artha Data Solutions | www.thinkartha.com
2
Nithin Bijjala
II. EASE OF WORKING
Web services basically works with Client-Server architecture through WSDL.
Graphical representation for the same:
In Client-Server architecture User executes a request with the correct Server; Server
performs the requested task and sends response back to the User.
In order to use the web server’s applications we have WSDL. WSDL (Web Services
Description Language) is an XML-based interface description language that is used for
describing the functionality offered by a web service.
III. SOAPUI OVERVIEW
We use SoapUI application to execute requests and get responses. SoapUI is a very
powerful application. SoapUI allows us to easily and rapidly create and execute
automated functional, regression, compliance, and load tests.
Some of the important options we use in SoapUI:
a. Import: We can import a project in SoapUI.
b. Run: We can execute a request by clicking on Run button.
c. Stop: We can stop the execution of the request by clicking on stop button.
22/06/2016
Artha Data Solutions | www.thinkartha.com
3
Nithin Bijjala
SoapUI with a request and response is shown below:
IV.COMPONENT TESTING MULTIPLE WEB SERVICES IN A SINGLE EXECUTION
In flow terms, a business scenario involves the integration of dependent API methods
developed for a specific business requirement. We can configure data in a Microsoft
Excel file for testing all of the valid and invalid Transaction flows that occur during a
business scenario. During execution, a script can populate the scenario’s Results column
with the test execution status. The possible values the script returns are Pass, Fail, or
Not Executed. Within a defined scenario, if any request to a specific API method fails,
the script returns fail for the entire scenario.
Configure the frame work The SoapUI Automation Framework provides test engineers
with an easy-to configure, reusable SoapUI project file called the “Base Project.”
The Base Project includes Groovy code that reads the Excel file from Test Suite and
dynamically creates test cases, using the SoapUI tool. These test cases validate the
functionality of the Web service or services by sending the XML-formatted requests as
specified in the test case and verifying the response accordingly.
22/06/2016
Artha Data Solutions | www.thinkartha.com
4
Nithin Bijjala
When configuring the Base Project, Testers need to set up another primary component
of the framework - Properties. Properties allow users to configure and use specific value
in different test steps within Test Suite. To specify the configuration values used within
the Groovy test scripts, users can create properties in Test Suite and at the test-case
level with a Base Project. The values can be referenced using either property transfer or
property expansion mechanisms. The Automation Framework has pre-defined
properties that help the Groovy scripts to set configurations with the values engineers
created in Test Suite. In other words, properties defined at the test-case level from
runtime, such as result file name or report file name, are automatically generated and
assigned by the Groovy script.
V. Using SoapUI pro for load testing
Load Testing is quite unique in SoapUI, we have created a functionality that allows you
to create Performance Tests quickly and modify them easily. This allows you to very
quickly create advanced Performance Tests. You can then validate a Web Service
performance under different Load scenarios, maintain functional validations to see that
they don't break under load, run several load tests simultaneously to see how they
affect each other and much more.
Some of the important options we use in SoapUI for Load Testing:
Create a new Load Test
Run the Load Test
Add Assertions to the Load Test
Load Testing Screen print as shown below:
22/06/2016
Artha Data Solutions | www.thinkartha.com
5
Nithin Bijjala
Load Test Graphical representation:
Load Test Metrice:
Benefits:
 Provides a fast solution for easy development and automated execution
 Reduces human efforts
 Easy to understand to new test team members
 Provides an extensible scope for automating Web services testing.
22/06/2016
Artha Data Solutions | www.thinkartha.com
6
Nithin Bijjala
Conclusion
Testing of Web Services is very challenging activity. Many characteristics (runtime
discovery, multi-organization integration) of this new paradigm and its related
technologies certainly make testing much more difficult.
There are other characteristics that could be fruitfully exploited Towards Automated
WSDL-Based Testing of Web Services for testing purposes. Among these, the
representation of data in a computer readable format (typically XML-based) facilitates
the automatic derivation of data instances to be used for testing invocations. Starting
from this consideration we presented a methodology to automatically derive test
messages from WSDL descriptions. Such messages include data representing possible
values that a real implementation of the service should be able to handle. Furthermore,
by use of our tool SoapUI, we proposed to exploit the characteristics of an XML to input
different data and in output results from response to automatically check and store.
This would result in the derivation of a test suite of messages that are representative of
the space of possible messages.
22/06/2016
Artha Data Solutions | www.thinkartha.com
7

More Related Content

What's hot

Test in Rest. API testing with the help of Rest Assured.
Test in Rest. API testing with the help of  Rest Assured.Test in Rest. API testing with the help of  Rest Assured.
Test in Rest. API testing with the help of Rest Assured.Artem Korchevyi
 
Rest API Security - A quick understanding of Rest API Security
Rest API Security - A quick understanding of Rest API SecurityRest API Security - A quick understanding of Rest API Security
Rest API Security - A quick understanding of Rest API SecurityMohammed Fazuluddin
 
WEBINAR: OWASP API Security Top 10
WEBINAR: OWASP API Security Top 10WEBINAR: OWASP API Security Top 10
WEBINAR: OWASP API Security Top 1042Crunch
 
How to Automate API Testing
How to Automate API TestingHow to Automate API Testing
How to Automate API TestingBruno Pedro
 
Introduction to APIs & how to automate APIs testing with selenium web driver?
Introduction to APIs & how to automate APIs testing with selenium web driver?Introduction to APIs & how to automate APIs testing with selenium web driver?
Introduction to APIs & how to automate APIs testing with selenium web driver?BugRaptors
 
I Love APIs 2015: Advanced Crash Course in Apigee Edge Workshop
I Love APIs 2015: Advanced Crash Course in Apigee Edge Workshop I Love APIs 2015: Advanced Crash Course in Apigee Edge Workshop
I Love APIs 2015: Advanced Crash Course in Apigee Edge Workshop Apigee | Google Cloud
 
Waits in Selenium | Selenium Wait Commands | Edureka
Waits in Selenium | Selenium Wait Commands | EdurekaWaits in Selenium | Selenium Wait Commands | Edureka
Waits in Selenium | Selenium Wait Commands | EdurekaEdureka!
 
API-first development
API-first developmentAPI-first development
API-first developmentVasco Veloso
 
Ppt of soap ui
Ppt of soap uiPpt of soap ui
Ppt of soap uipkslide28
 
REST API 설계
REST API 설계REST API 설계
REST API 설계Terry Cho
 
Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)Postman
 
Software Quality Assurance(Sqa) automated software testing
Software Quality Assurance(Sqa) automated software testingSoftware Quality Assurance(Sqa) automated software testing
Software Quality Assurance(Sqa) automated software testingREHMAT ULLAH
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testingb4usolution .
 
API Testing With Katalon Studio
API Testing With Katalon StudioAPI Testing With Katalon Studio
API Testing With Katalon StudioKnoldus Inc.
 
The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016
The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016
The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016Frans Rosén
 

What's hot (20)

Test in Rest. API testing with the help of Rest Assured.
Test in Rest. API testing with the help of  Rest Assured.Test in Rest. API testing with the help of  Rest Assured.
Test in Rest. API testing with the help of Rest Assured.
 
API Security Lifecycle
API Security LifecycleAPI Security Lifecycle
API Security Lifecycle
 
Kong
KongKong
Kong
 
Rest API Security - A quick understanding of Rest API Security
Rest API Security - A quick understanding of Rest API SecurityRest API Security - A quick understanding of Rest API Security
Rest API Security - A quick understanding of Rest API Security
 
WEBINAR: OWASP API Security Top 10
WEBINAR: OWASP API Security Top 10WEBINAR: OWASP API Security Top 10
WEBINAR: OWASP API Security Top 10
 
How to Automate API Testing
How to Automate API TestingHow to Automate API Testing
How to Automate API Testing
 
Introduction to APIs & how to automate APIs testing with selenium web driver?
Introduction to APIs & how to automate APIs testing with selenium web driver?Introduction to APIs & how to automate APIs testing with selenium web driver?
Introduction to APIs & how to automate APIs testing with selenium web driver?
 
I Love APIs 2015: Advanced Crash Course in Apigee Edge Workshop
I Love APIs 2015: Advanced Crash Course in Apigee Edge Workshop I Love APIs 2015: Advanced Crash Course in Apigee Edge Workshop
I Love APIs 2015: Advanced Crash Course in Apigee Edge Workshop
 
Waits in Selenium | Selenium Wait Commands | Edureka
Waits in Selenium | Selenium Wait Commands | EdurekaWaits in Selenium | Selenium Wait Commands | Edureka
Waits in Selenium | Selenium Wait Commands | Edureka
 
API-first development
API-first developmentAPI-first development
API-first development
 
Ppt of soap ui
Ppt of soap uiPpt of soap ui
Ppt of soap ui
 
REST API 설계
REST API 설계REST API 설계
REST API 설계
 
Api testing
Api testingApi testing
Api testing
 
Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)
 
API Testing
API TestingAPI Testing
API Testing
 
Software Quality Assurance(Sqa) automated software testing
Software Quality Assurance(Sqa) automated software testingSoftware Quality Assurance(Sqa) automated software testing
Software Quality Assurance(Sqa) automated software testing
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testing
 
API Testing With Katalon Studio
API Testing With Katalon StudioAPI Testing With Katalon Studio
API Testing With Katalon Studio
 
The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016
The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016
The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016
 
REST API
REST APIREST API
REST API
 

Similar to White paper ready api

Testing soapui
Testing soapuiTesting soapui
Testing soapuiF K
 
WebServices using Soap
WebServices using SoapWebServices using Soap
WebServices using SoapMohammed625
 
SoapUi using WebServices
SoapUi using WebServicesSoapUi using WebServices
SoapUi using WebServicesAbdulImrankhan7
 
WebServices using Soapui
WebServices using SoapuiWebServices using Soapui
WebServices using Soapuijaveed_mhd
 
Tools that have made cloud testing easy
Tools that have made cloud testing easyTools that have made cloud testing easy
Tools that have made cloud testing easyBugRaptors
 
Continuous Integration and Continuous Delivery to Facilitate Web Service Testing
Continuous Integration and Continuous Delivery to Facilitate Web Service TestingContinuous Integration and Continuous Delivery to Facilitate Web Service Testing
Continuous Integration and Continuous Delivery to Facilitate Web Service TestingCognizant
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1Sun Technlogies
 
Continuous Testing of Service-Oriented Applications Using Service Virtualization
Continuous Testing of Service-Oriented Applications Using Service VirtualizationContinuous Testing of Service-Oriented Applications Using Service Virtualization
Continuous Testing of Service-Oriented Applications Using Service Virtualizationiosrjce
 
journal of engineering and applied science.pdf
journal of engineering and applied science.pdfjournal of engineering and applied science.pdf
journal of engineering and applied science.pdfKSAravindSrivastava
 
research journal publication
research journal publication research journal publication
research journal publication chaitanya451336
 
research journal publication
research journal publication research journal publication
research journal publication chaitanya451336
 
scopus indexed journals list.pdf
scopus indexed journals list.pdfscopus indexed journals list.pdf
scopus indexed journals list.pdfKSAravindSrivastava
 
journal of engineering and applied science.pdf
journal of engineering and applied science.pdfjournal of engineering and applied science.pdf
journal of engineering and applied science.pdfKSAravindSrivastava
 
ijlbpr_64ab991977359.pdf
ijlbpr_64ab991977359.pdfijlbpr_64ab991977359.pdf
ijlbpr_64ab991977359.pdfchaitanya451336
 

Similar to White paper ready api (20)

Testing soapui
Testing soapuiTesting soapui
Testing soapui
 
Testing soapui
Testing soapuiTesting soapui
Testing soapui
 
WebServices using Soap
WebServices using SoapWebServices using Soap
WebServices using Soap
 
SoapUi using WebServices
SoapUi using WebServicesSoapUi using WebServices
SoapUi using WebServices
 
WebServices using Soapui
WebServices using SoapuiWebServices using Soapui
WebServices using Soapui
 
Tools that have made cloud testing easy
Tools that have made cloud testing easyTools that have made cloud testing easy
Tools that have made cloud testing easy
 
Ibm rtw
Ibm rtwIbm rtw
Ibm rtw
 
Continuous Integration and Continuous Delivery to Facilitate Web Service Testing
Continuous Integration and Continuous Delivery to Facilitate Web Service TestingContinuous Integration and Continuous Delivery to Facilitate Web Service Testing
Continuous Integration and Continuous Delivery to Facilitate Web Service Testing
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1
 
M017258892
M017258892M017258892
M017258892
 
Continuous Testing of Service-Oriented Applications Using Service Virtualization
Continuous Testing of Service-Oriented Applications Using Service VirtualizationContinuous Testing of Service-Oriented Applications Using Service Virtualization
Continuous Testing of Service-Oriented Applications Using Service Virtualization
 
journal of engineering and applied science.pdf
journal of engineering and applied science.pdfjournal of engineering and applied science.pdf
journal of engineering and applied science.pdf
 
ugc journal.pdf
ugc journal.pdfugc journal.pdf
ugc journal.pdf
 
research journal publication
research journal publication research journal publication
research journal publication
 
research journal publication
research journal publication research journal publication
research journal publication
 
ugc carelist.pdf
ugc carelist.pdfugc carelist.pdf
ugc carelist.pdf
 
ugc journal.pdf
ugc journal.pdfugc journal.pdf
ugc journal.pdf
 
scopus indexed journals list.pdf
scopus indexed journals list.pdfscopus indexed journals list.pdf
scopus indexed journals list.pdf
 
journal of engineering and applied science.pdf
journal of engineering and applied science.pdfjournal of engineering and applied science.pdf
journal of engineering and applied science.pdf
 
ijlbpr_64ab991977359.pdf
ijlbpr_64ab991977359.pdfijlbpr_64ab991977359.pdf
ijlbpr_64ab991977359.pdf
 

Recently uploaded

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

White paper ready api

  • 1. Nithin Bijjala White Paper- Web Services Automation Testing using SoapUI NG Pro Tool Abstract  Testing team always faces difficulties while dealing with Web services  Web services usually do not have visible, user-friendly interfaces, so performing manual testing is always not easy.  Web services hide all of the details of their underlying business logic and appear as code in response and request to the Testers. It can be hard for testers to know if they are getting what they should from a Web service.  It’s always challenging for testers to find all of the right inputs to exhaustively test Web services, but it’s crucial to check if business logic is correctly implemented.  Most popularly used tool for testing Web services is SoapUI which allows you to test web services manually as well as using automation suite. In short, businesses need a comprehensive methodology inclusive of tools and automation framework for designing and executing thorough Web services testing. This white paper outlines a data driven automation framework which can be developed in SoapUI which helps testing teams and business owners design, setup and execute comprehensive tests for testing services quickly and run them in lights-out mode without having exceptional automation skills. 22/06/2016 Artha Data Solutions | www.thinkartha.com 1
  • 2. Nithin Bijjala Introduction Service Oriented Architecture (SOA) is the emerging paradigm for the development of distributed applications that are easy to integrate and flexible to fast changes of the environment and of user requirements. IT technology trend is that the business and social welfare are more and more depending on the proper functioning of services delivered over the Net. Companies need to have an eye on a provided service, against accidental or intentional faults. Because of their pervasive distribution, company must offer very strict guarantees in this regard, even for services that are not dealing with safety-critical or money-critical applications. For this reason, it is imperative that companies are thoroughly tested before deployment. Essentially, a company collects a set of functions, whose invocation syntax is defined in the associated WSDL document. The WSDL formalized description of service operations and of their input and output parameters can be in fact taken as a reference for black box testing at the service interface. Soap UI tool can automatically derive skeletons of test cases and provide support for their execution and result analysis which ultimately results in saving human efforts, time and money. I. WEB SERVICES AUTOMATION FRAMEWORK The Automated Framework for testing Web services evolved to handle the many business scenarios and use cases required for testing large volumes of data passing through Web services. The Automation Framework interacts with external data sources to import data, pass it to XML-formatted requests, and process the requests. The framework automatically generates reports of test runs and shows the results in an easy to-read text format.  Test teams appreciate these key advantages that the Automation Framework enables  Quick and easy development of reusable, automated test scripts  Automatic execution of regression tests on different data sets  Significant suppression in maintenance costs can be used by new team members using consistent and easy design, development, and execution techniques 22/06/2016 Artha Data Solutions | www.thinkartha.com 2
  • 3. Nithin Bijjala II. EASE OF WORKING Web services basically works with Client-Server architecture through WSDL. Graphical representation for the same: In Client-Server architecture User executes a request with the correct Server; Server performs the requested task and sends response back to the User. In order to use the web server’s applications we have WSDL. WSDL (Web Services Description Language) is an XML-based interface description language that is used for describing the functionality offered by a web service. III. SOAPUI OVERVIEW We use SoapUI application to execute requests and get responses. SoapUI is a very powerful application. SoapUI allows us to easily and rapidly create and execute automated functional, regression, compliance, and load tests. Some of the important options we use in SoapUI: a. Import: We can import a project in SoapUI. b. Run: We can execute a request by clicking on Run button. c. Stop: We can stop the execution of the request by clicking on stop button. 22/06/2016 Artha Data Solutions | www.thinkartha.com 3
  • 4. Nithin Bijjala SoapUI with a request and response is shown below: IV.COMPONENT TESTING MULTIPLE WEB SERVICES IN A SINGLE EXECUTION In flow terms, a business scenario involves the integration of dependent API methods developed for a specific business requirement. We can configure data in a Microsoft Excel file for testing all of the valid and invalid Transaction flows that occur during a business scenario. During execution, a script can populate the scenario’s Results column with the test execution status. The possible values the script returns are Pass, Fail, or Not Executed. Within a defined scenario, if any request to a specific API method fails, the script returns fail for the entire scenario. Configure the frame work The SoapUI Automation Framework provides test engineers with an easy-to configure, reusable SoapUI project file called the “Base Project.” The Base Project includes Groovy code that reads the Excel file from Test Suite and dynamically creates test cases, using the SoapUI tool. These test cases validate the functionality of the Web service or services by sending the XML-formatted requests as specified in the test case and verifying the response accordingly. 22/06/2016 Artha Data Solutions | www.thinkartha.com 4
  • 5. Nithin Bijjala When configuring the Base Project, Testers need to set up another primary component of the framework - Properties. Properties allow users to configure and use specific value in different test steps within Test Suite. To specify the configuration values used within the Groovy test scripts, users can create properties in Test Suite and at the test-case level with a Base Project. The values can be referenced using either property transfer or property expansion mechanisms. The Automation Framework has pre-defined properties that help the Groovy scripts to set configurations with the values engineers created in Test Suite. In other words, properties defined at the test-case level from runtime, such as result file name or report file name, are automatically generated and assigned by the Groovy script. V. Using SoapUI pro for load testing Load Testing is quite unique in SoapUI, we have created a functionality that allows you to create Performance Tests quickly and modify them easily. This allows you to very quickly create advanced Performance Tests. You can then validate a Web Service performance under different Load scenarios, maintain functional validations to see that they don't break under load, run several load tests simultaneously to see how they affect each other and much more. Some of the important options we use in SoapUI for Load Testing: Create a new Load Test Run the Load Test Add Assertions to the Load Test Load Testing Screen print as shown below: 22/06/2016 Artha Data Solutions | www.thinkartha.com 5
  • 6. Nithin Bijjala Load Test Graphical representation: Load Test Metrice: Benefits:  Provides a fast solution for easy development and automated execution  Reduces human efforts  Easy to understand to new test team members  Provides an extensible scope for automating Web services testing. 22/06/2016 Artha Data Solutions | www.thinkartha.com 6
  • 7. Nithin Bijjala Conclusion Testing of Web Services is very challenging activity. Many characteristics (runtime discovery, multi-organization integration) of this new paradigm and its related technologies certainly make testing much more difficult. There are other characteristics that could be fruitfully exploited Towards Automated WSDL-Based Testing of Web Services for testing purposes. Among these, the representation of data in a computer readable format (typically XML-based) facilitates the automatic derivation of data instances to be used for testing invocations. Starting from this consideration we presented a methodology to automatically derive test messages from WSDL descriptions. Such messages include data representing possible values that a real implementation of the service should be able to handle. Furthermore, by use of our tool SoapUI, we proposed to exploit the characteristics of an XML to input different data and in output results from response to automatically check and store. This would result in the derivation of a test suite of messages that are representative of the space of possible messages. 22/06/2016 Artha Data Solutions | www.thinkartha.com 7