Web Testing

Functional Testing a SOAP WebService

This tutorial provides a brief introduction to the AppPerfect Web Test product using a set of hands-on practice exercises. This tutorial assumes you have successfully downloaded and installed AppPerfect Web Test on your machine with the default options. Apart from this pre-requisite, this tutorial is self contained.

This document is divided into following sections

  1. Creating Project
  2. AppPerfect Web Test

Within each section, multiple exercises are listed. Each exercise forms a logical unit which is expected to take no more than a few minutes to perform. This tutorial will use GlobalWeather webservice.

This tutorial is not intended as a comprehensive training guide. Please refer to the product documentation for detailed information. However, this tutorial will give you a very good overview of the products and substantially improve your productivity with the product.

Creating Project

Exercise 1: Launch AppPerfect Web Test
  1. Click on Start -> Programs ->AppPerfect Web Test x.x.x -> AppPerfect Web Test
  2. On launching AppPerfect Web Test a Welcome page will be displayed. Go through the brief description given for product.
Exercise 2: Creating Project
  1. Launch the Define New Project dialog by clicking File ->New... menu option. The New Project wizard will be launched.
  2. Keep the default project name and location for the purpose of this exercise. Click on the OK button.
  3. A confirmation message saying that the project is saved will be displayed. Click on the OK button.

Now using this project we will create tests to demonstrate the functionalities of AppPerfect Web Test product.

AppPerfect Web Test

NB:Please follow the steps provided in the "Creating Project" section to first create a project, then proceed further.

Exercise 1: Define a Web Test project
  1. Once the common project is successfully created another dialog - Define Project Properties dialog - will be displayed.
  2. The dialog shows various options which can be configured for the project, leave them default and click on Next button.
  3. Click through all the menu items to familiarize yourself with the available features and how to access them. Viewing through all menu items will give a reasonable overview of the application.
  4. Click Help -> Table of Contents menu item to see AppPerfect Web Test product documentation
  5. Open the Preferences dialog by selecting the menu option Tools -> Options...
  6. Review the default settings for Web Test and click the OK button to close the dialog.
Exercise 2: Recording a Test
  1. Right click on project and Add group. Provide the group name (using ActionGroup1 here), repeat count and select Group type as SOAP.
  2. Keep the default settings in Group Details.
  3. Right click on ActionGroup1, Add a task. Provide WSDL File/URL as "http://www.webservicex.com/globalweather.asmx?wsdl" and click on Load WSDL.
  4. The remaining fields will be populated on loading the WSDL. Click OK.
  5. Review that Task fields inside ActionGroup1 are populated according to the WSDL file.
  6. Select task Task2 [GlobalWeatherSoap.GetCitiesByCountry]. In Parameters tab, select the parameter CountryName and click on edit icon beside the Parameters table to provide value as "United States".
  7. Similarly, parameters can be configured for Task1 [GlobalWeatherSoap.GetWeather].
  8. To verify the test, Click Project -> Verify Test using Browser.
Exercise 3: Executing a test
  1. Go to Project -> Properties.... menu to open Web Test project properties dialog. Change the 'No. of iterations' value to 2 and click OK.
  2. To start replay of the recorded test, click on Project -> Run from the menu bar.
Exercise 4: View and analyze results
  1. After replay, results are displayed in Results tab.
  2. Click on Results tab. Test results details are displayed on the right. Click on individual items in the tree on the left to view details on specific actions.
  3. Browse and examine the different views that are displayed on selecting the various nodes in the navigation tree.
  4. Select the ActionGroup node. This report gives a summary of the successful, failed, timed-out & not played URLs & Events.
  5. Select the URL Item and click on the Validation Results tab on the right. Here you will find the details of the successful / failed validations.
We use cookies for analytics, advertising and to improve our site. By continuing to use our site, you accept to our Privacy policy and allow us to store cookies.