How to add Web Service Test Objects to the Object Repository in QTP

Advertisement:

The Web Services Add-in enables you to add WebService test objects to your object repository using the Web Service Add Object Wizard. You can then use the new test object to add steps to your test or component. After a WebService test object is added to the object repository, you can access all operations supported by the Web service in the Operations column of the Keyword View, in the Expert View IntelliSense, or in the Step Generator.
In IntelliSense and in the Step Generator, you can view the operations supported by the Web service in the upper part of the box. These are the operations that were derived from the WSDL source. QTP WebService test object operations are displayed in the lower part of the box.
How to add Web Service Test Objects to the Object Repository in QTP

The Web Service Add Object Wizard helps you select the WSDL source, the Web service, and the port you want to test.

Please note if you want to create a WebService test object and automatically generate steps for the operations it supports, you can use the Web Service Testing Wizard. To open the Web Service Add Object Wizard, follow the below steps:
  • Click the Object Repository toolbar button, or select Resources > Object Repository. The Object Repository dialog box opens.
  • Click the Web Service Add Object Wizard button or select Object > Web Service Add Object Wizard. The Web Service Add Object Wizard opens to show the Specify WSDL for Scanning screen. The Web Service Add Object Wizard includes the following screens:
    • Add Object Wizard – Specify WSDL for Scanning Screen – Enables you to select and validate the source of the test object you want to create.
    • Add Object Wizard – Select Service Screen – Enables you to select the WSDL service for which you want to create a test object.
Advertisement:

No comments:

Post a Comment

175248765853890