To Configure Mandatory and Assistive Properties For a Test Object Class in QTP Tool

Configuring Object Identification

When Quick Test learns an object, it learns a set of properties and values that uniquely describe the object within the object hierarchy. In most cases, this description is sufficient to enable Quick Test to identify the object during the run session.

Quick Test has a predefined set of properties that it learns for each test object. If these mandatory property values are not sufficient to uniquely identify a learned object, then
Quick Test can add some assistive properties and an ordinal identifier to create a unique description.

Mandatory properties are the properties that Quick Test always learns for a particular test object class.

Assisitive Properties are the properties that Quick Test learns only if the mandatory properties that Quick Test learns for a particular object in your application are not sufficient to create a unique description.

To configure mandatory and assistive properties for a test object class:

  1. Select Tools > Object Identification. The Object Identification dialog box opens:

    1.JPG

  2. Select the appropriate environment in the Environment list. The test object classes associated with the selected environment are displayed alphabetically in the Test Object classes list.

    2.JPG

  3. In the Test Object classes list, select the test object class you want to configure:

    3.JPG

  4. In the mandatory properties list, click Add/Remove. The Add/Remove properties dialog box opens:

    4.JPG

  5. Select the properties you want to include in the list and click OK:

    5.JPG

  6. In the Assistive properties list, click Add/Remove. The Add/Remove properties dialog box opens:

    6.JPG

  7. Select the properties you want to include in the list and click OK.

  8. Use the Up and Down arrows to set your preferred order:

    8.JPG

Up Next
    Ebook Download
    View all
    Learn
    View all