Friday, 9 August 2013

What is Object Spy, How to Use It

QTP Object Spy helps to view the supported run & test time properties and method of any object in an open application. Click the pointing hand to select the object in the application. Object details are displayed in the Object Spy. These details includes the test object’s hierarchy tree, its identification properties and values, and the operations associated with the object.
Go to Tools -> Object Spy or click the Object Spy button on Tool bar. Object Spy components are as follows -
Object hierarchy tree
– Displays the hierarchy of objects that are related to the object you selected.

 Run-time Object Properties / Run-time Object Methods
– Displays the run-time (native) object properties or methods associated with the object selected in the Object Spy’s object hierarchy tree.

Test Object Properties / Test Object Methods
– Displays the test object properties or methods associated with the object selected in the Object Spy’s object hierarchy tree.
– Properties Tab
– Displays the properties and values of the selected object.
– Properties. Displays the property names for the object that is currently selected in the Object Spy’s object hierarchy tree.
– Values. Displays the property values for the object that is currently selected in the Object Spy’s object hierarchy tree.

Methods Tab
– Displays the methods associated with the selected object.
– Methods. Displays the run-time object or test object methods and their corresponding syntax for the object that is currently selected in the Object Spy’s object hierarchy tree.
– Description. Describes the method.

Explain in Brief About the QTP Automation Object Model

QTP Automation Object model deals with Automation of QTP itself. Almost all configuration and functionality provided by QTP is represented by QTP’s Automation Object Model . Almost all dialog boxes in QTP have a corresponding automation object which can set or retrieved using the corresponding properties or methods in the Automation Object Model.QTP Automation Objects can be used along with standard VB programming elements like iterative loops or conditional statements to help you design a script of choice

What is the Text Output & Its Use in QTP


Text Output value enables to capture text appearing on the application under test during run-time. For example, suppose that you want to store the text of any error message that appears after a specific step in the Web application you are testing. you output the text in this window.

To create a text output value while recording:
  1. Highlight or display the text string you want to use for an output value.
  2. Select Insert > Output Value > Text Output Value. The pointer changes into a pointing hand.
  3. In your application, click the text string for which you want to specify a text output value. The Text Output Value Properties dialog box opens.
  4. QTP creates a column (using logical name) in Global DataTable to store output value.

What is Quick Test Professional Step Generator

Step Generator enables to Add Test Steps in your script. Using step generator you can add steps to your script without actually recording it.

How Can You Handle Exceptions in QTP