You can view and modify the object class properties in the Object Identification dialog box.
Use the Object Identification dialog box to:
. View the mandatory and assistive properties of an object class.
. Modify the mandatory and assistive properties of an object class.
. .Select the ordinal identifier for an object class.
. Create a user-Defined object class.
. Reset the properties of an object class.
. Quick test has a predefined set of properties that it learns for each test object. You use the object Identification dialog box to view and modify the predefined set of properties of all object classes.
31.1. To open the Object Identification dialog box:
Step 1: From the Quick test professional menu bar, select Tools>Object Identification.
Step 2: Object Identification dialog box appears.
In the Object Identification dialog box, from the Test Object Classes list, select the object class whose properties you want to view.
31.2. Identifying Types of Object Class Properties:
An application uses multiple instances of an object class. For Example, the flight Reservation application uses the Fly From and Fly To Combo box, which are objects of the WinComboBox object class.
Quick test Professional assigns a set of mandatory and assistive properties to the Wincombobox object class to help the class recognize the combo box. These properties help create a unique description of each object in an object class.
Mandatory properties are the properties that Quick Test always recognizes for a test object class. Quick Test recognizes assistice properties if the mandatory properties are not sufficient to create description for an object in an object class.
In the flight Reservation application, the Attached Text property uniquely identifies the object of the Win Combo box object class. Therefore, Quick Test assigns the Attached Text property as a mandatory property to the Win Combo box object class. However, there may be instances of applications where the attached text may be the same for different combo box. In such case, Quick test assigns additional mandatory and assistive properties to create a unique description of an object.
Step 3: In the Object Identification dialog box, below the Mandatory Properties list, click Add/Remove.
Step 4: in the Add/Remove Properties dialog box, clear the properties that you do not require and check the properties that you require.
Step 5: If the available property are not sufficient, click New to create a new property.
Step 6: In the Name Property dialog box, in the New Property Name field, type a name for the property, and click Ok.
Step 7: Click on Ok to close the Add/Remove Properties dialog box and apply the new properties to the object class.
Note: You can modify the assistive properties of an object class in a similar manner.
Step 8: Quick test uses an Ordinal Identifier to identify an object if the mandatory and assistive properties are insufficient to identify the object. You select the Ordinal Identifier as Location Or Index from the Ordinal Identifier list in the Object Identification dialog box.
BY default, the location of an object is used as an ordinal identifier to identify an object.
Note: when you run a test, Quick Test searches for an object based on the description it learned for the object. If Quick test cannot find any object that matches the description, or if it finds multiple objects that match, Quick Test uses the Smart Identification feature to identify the object.
31.3. To modify the Smart Identification Properties:
Step 9: In the Object Identification dialog box, click Configure. The Smart Identification Properties-Browser dialog box appears. The Smart Identification Properties-Browser dialog box displays the Base Filter Properties and Optional Filter Properties lists for an object class.
Step 10: Click Add/Remove to modify a property.
Step 11: Click on Ok in the Object Identification dialog box.
Step 12: After you modify the Smart Identification properties and update a test, you run the test and view the test result.
No comments:
Post a Comment