Best practices – working with the Web Services Add-in

  • QTP supports keyword-driven testing on your Web services. This means that in QTP; after you add a WebService test object to your object repository, you can access all of the operations that the Web service supports from the Operation column of the Keyword View, the Operation box in the Step Generator, or by using IntelliSense in the Expert View.
  • You can add a WebService test object using the Web Service Add Object Wizard or the Web Service Testing Wizard.
  • The Web Service Add Object Wizard enables you to automatically create a WebService test object. You can then add steps manually.
  • When working with tests, you can use the Web Service Testing Wizard to automatically create a WebService test object and to generate steps to test the operations that your Web service supports based on a supplied WSDL file. The Web Service Testing Wizard also enables you to automatically generate checkpoints for these steps.
  • You can enhance your test manually by entering operations in the Expert View.
  • When working with components, QTP provides commonly used Web service functions in the Web_Services.txt function library. You can use these functions if the function library is associated with your component’s application area or your test.
  • You (or an Automation Engineer) can wrap additional Web service-specific functionality in other function libraries associated with the component’s application area.
  • When working with multiple toolkits, it is recommended to create a separate test or component for use with each required toolkit.
  • If your Web service is protected by a firewall, or your Web service requests are routed via a proxy server, you may need to insert a SetProxy statement to set the required proxy information for the service before the first step containing an operation on the corresponding WebService test object. If you are working with components, you or an Automation Engineer may need to wrap this functionality in a user-defined function and associate the function library with your application area.
  • The Web Services Add-in of QTP is compliant with namespace and XPath standards
Rahnuma Tasnim

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top