How to perform Web Services Testing?
A Web Service is a service accessed via Web. Web Service is a way to publish your application over web and enable other applications to access functions defined by your web service. Web services exposes an interface defined in Web Services Description Language (WSDL).
Web Service Testing
Web Services Testing basically involves
- Understand the WSDL file
- Determine the operations that particular web service provides
- Determine the XML request format which we need to send
- Determine the response XML format
- Using a tool or writing code to send request and validate the response
Suppose for example we want to test a WebService which provides Currency Conversion Facility. It will the current conversion rates between the different countries currency. This service we can use in our applications to convert the values from one currency to the other currency
Web Services Functional Testing
A Web Service is a service accessed via Web. Web Service is a way to publish your application over web and enable other applications to access functions defined by your web service. Web services exposes an interface defined in Web Services Description Language (WSDL). Other applications can interact with Web service using the description provided using its WSDL interface. The protocol used to interact with Web Services is Simple Object Access Protocol (SOAP). SOAP is a simple XML-based protocol to let applications exchange information over HTTP.
Web Services with incorrect responses can lead to problems. Web Service Functional Testing ensures that your web service is functionally correct. Automated Web Service Functional Testing involves carrying set of tasks automatically and comparing the result of same with the expected output and ability to repeat same set of tasks multiple times with different data input and same level of accuracy. Implementing functional test for your web service early in the software development cycle speeds up development, improves quality and reduces risks towards the end of the cycle.