Web Service Testing Wizard in QTP

Advertisement:

The Web Service Testing Wizard of QTP helps you select the WSDL source, set security options, and specify the Web service, port, and operations you want to test. For tests, you can also choose to automatically insert checkpoints with the proper syntax for each selected operation. When you finish, the wizard creates a WebService test object that represents the Web service and port you want to test and inserts the relevant steps directly into your test or component.
You can then update the generated steps of your test or component by replacing the generated argument values with valid values, updating the expected values, and selecting the nodes you want to check in your checkpoints (tests only). After you perform these steps, you can update the data by performing an update run (Automation > Update Run Mode). You can also enhance the generated test or component by inserting additional steps or, for tests, adding programming logic.

Please note that QTP includes Maintenance Run Mode, which is not supported for applications such as Web services, which do not have a user interface.

After you associate the Web_Services.txt function library with your component’s application area or your test, you can also perform verification operations similar to checkpoints, and you can insert a wide range of Web service security operations in your component steps.
 
Here, one important point to note is that if you want to automatically add a WebService test object to your object repository, and then generate steps manually for the operations it supports, you can use the Web Service Add Object Wizard.
 
To open the Web Service Testing Wizard in QTP, click the Web Services Wizard button or select Automation > Web Service Testing Wizard. The Web Service Testing Wizard opens.
 
Web Service Testing Wizard in QTP
 
The Web Service Testing Wizard includes the following screens:
  • Welcome to the Web Service Testing Wizard Screen - Provides an overview of the wizard steps.
  • Web Service Testing Wizard - Specify WSDL for Scanning Screen. Enables you to select the source of the test object you want to include in the generated steps.
  • Web Service Testing Wizard - Set Security Options Screen. Enables you to select the security tokens required for communication with the Web service you want to test, and to set their property values.
  • Web Service Testing Wizard - Select Service and Operations Screen. Enables you to select the WSDL service you want to test and the service operations you want to include in your generated test.
  • Web Service Testing Wizard - Summary Screen. Displays a summary of your selections and for tests, enables you to choose whether to add checkpoints after each relevant operation step.
When you click Finish, the basic test is created. You complete it by entering relevant operation argument values and by setting checkpoint expected values (for tests) and other preferences.
 
Please note that running your test or component without entering valid argument values may cause the test to fail.
Advertisement:

No comments:

Post a Comment

175248765853890