webservices testing - a changing landscape
TRANSCRIPT
www.zensar.com
Whi
te P
aper
Webservices Testing – An Opportunity and A Challenge
The changing landscape and implementing a cost effective and a scalable solution
www.zensar.com
IntroductionWeb Services is the mechanism or the medium of communication through which two applications or machines will exchange the data irrespective of their underline architecture and the technology
It is a collection of open protocols and standards used for exchanging data between applications or systems. Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks like the Internet in a manner similar to inter-process communication on a single computer.
Today most of the applications being developed have service oriented architecture. This saves efforts and reduces redundancy. So testing the web services has become an integral part of API testing plan.
Web Services can be implemented in different ways, but the following two are the popular implementations approaches.
1. SOAP (Simple Object Access Protocol)
2. REST (Representational State Transfer architecture)
Problem Statement–Today as the budgets are becoming tighter and clients do not want to spend more on testing infrastructure, implementing a scalable and cost effective testing solution is a challenge. How to create and implement such a test bed?
Solution –
The infrastructure costs can be brought down by saving on licensing costs and overheads like anti-virus solutions etc. In place of a Windows or a Mac machine, a Linux OS machine could be used.
And on a Linux machine, we install open source tools that save on tool licensing costs.
Two broad areas of testing to be addressed here are -
1. Functional Testing of SOAP and REST Services2. Non Functional Testing of SOAP and REST Services
For functional testing of SOAP and REST services, we begin with installation of SOAP UI on Linux machine –both 32 bit and 64 bit versions are available.
For non-functional testing, that is performance testing, we will install Jmeter on the Linux machine. It is run by running a simple shell script file.
www.zensar.com
The screenshots below demonstrate creating SOAP and REST services performance test scripts
SOAP Performance Test Script
REST Service Performance Test Script
www.zensar.com
The screenshots below demonstrate creating SOAP and REST services functional test scripts
Functional Test Script – SOAP
www.zensar.com
Functional Test Script – REST
www.zensar.com
www.zensar.com
Conclusion
Testing web services provides a number of unique challenges. They being completely UI- less, do not display a user interface that can be tested. With ever increasing client budget limitations and schedules, a scalable and cost effective automated testing solution as above can provide higher benefits and ROI.
About the Author:
Amit Channa,
Technical Specialist.
Beckman Coulter Life Sciences,
EON IT Park.
Zensar Technologies Ltd.
Email –[email protected]