AutomatedQA: Award-winning tools for software testing and quality assurance

Home » Products » TestComplete » TestComplete - Testing Web Services

TestComplete - Testing Web Services

Web services are a new generation of Web applications that use XML-based standards and protocols to exchange information. Unlike traditional client/server applications, web services do not have the graphical interface because they are not intended for human interaction. Rather, they provide programmatic interfaces that can be used to expose the service functionality in a client application, such as a Web page or an executable.

TestComplete lets you perform functional testing of web services. Creating a functional test for a web service is similar to creating other functional tests, and includes the following steps:

  • Planning the test.
  • Exploring methods and objects provided by the tested web service in TestComplete.
  • Creating script code for calling object methods and verifying the returned values.

A special wizard helps you select the web service for testing. You can also choose between different SOAP protocol versions to be used for transmitting data between TestComplete and the web service:

The Web Service Test Editor lets you view and explore information about the tested service: its name, address and the SOAP protocol used, the list of service’s methods and their parameters, the list of objects used by the methods, the syntax used to call methods from scripts, and other info:

In scripts, a few lines of code are enough to call a web service’s method and verify its result. Instead of writing the script code from scratch, you can visually create and configure checkpoints for verifying the response of a web service method:

In this case, TestComplete generates the needed script code for you:

[VBScript]

Call WebServices.WebService1.ConvertArea(0, XML.AConverter)
If (Not XML.ConvertArea.Compare(WebServices.WebService1)) Then
  Call Log.Error("The ConvertArea method of the WebService1 web service returned an incorrect value.")
End If


You could also take advantage of other features in TestComplete to create more thorough functional tests for web services. For example, you can use the data-driven technique to perform numerous tests and increase the test coverage.

Note, since TestComplete can record SOAP traffic (SOAP is the protocol used by web services to transmit data over a network), you can also perform load testing of web services to see how the services behave under a massive workload.

 
For more information on TestComplete and other Quality Assurance products from AutomatedQA, write to us at sales@automatedqa.com.

 
Copyright © 1999-2008, AutomatedQA, Corp. All Rights Reserved.
Home | Legal | About | Contact | Site Map | Print