Open topic with navigation
The Custom Support Test Object Identification Properties screen displays the identification properties supported by the base support class you are extending, as well as additional properties that are defined in the test object class you selected, but are not yet supported. It enables you to select properties whose support you want to implement or override with new functionality. It also enables you to add new properties.
When you click Next, the Custom Support Test Object Methods Screen opens:
The left pane displays all of the identification properties implemented by the base support class. These are the identification properties that will be inherited by the support class you are creating. You can select any identification properties whose support you want to override with a different implementation.
Note: Some of these identification properties are not included in the test object class definition. Therefore, they are not displayed in UFT in the Object Spy or in the Checkpoint Properties dialog box. You can access those identification properties by using the GetROProperty method. For more information on the GetROProperty method, see the Micro Focus UFT Object Model Reference for GUI Testing.
When the wizard creates the support class file, it adds a support method stub, named <identification property name>_attr, for each of the identification properties you select. The support method stubs return the same values as the support methods in the base support class. You can implement the new support methods to match the needs of your custom control.
The right pane displays the identification properties that are defined in the test object class you selected, but are not supported by the base support class. You can modify this list using the Add, Remove, and Modify buttons.
For each of the identification properties in this pane, the wizard adds a support method stub to the support class it creates. The support method stubs return null until you implement them to match the needs of your custom control.
If you add identification properties to this list, the wizard adds them to the test object class definition in the test object configuration file. For information on the structure and content of this file, see the UFT Test Object Schema Help.
Note: If you selected the Same as base support class option in the Test Object Class Selection Screen, the wizard does not know which test object class is mapped to the custom control. As a result, no identification properties are displayed in the right pane. If you add an identification property, the wizard adds the appropriate support method stub to the support class it creates. However, the identification property is not added to any test object class definition.
If you add identification properties to this list, they are added to the test object class definition. This means that the new properties appear in the list of identification properties in UFT for all test objects of this class.
Therefore, if you plan to add properties, it is recommended to create a new test object class based on the existing one, instead of using the existing test object class.
If you remove an identification property from the list, it is no longer supported for this custom class. However, it is still part of the test object class definition. Therefore, although it still appears in the list of identification properties shown in the UFT Object Spy, it will have no value.
Modifying an identification property is equivalent to removing it and adding a new one.
The procedures below describe how to add, remove, and modify identification properties in the list of additional properties required for the test object class.
In the Additional properties required for test object class pane, click Add. The Identification Property dialog box opens.
Enter a name for the new identification property and click OK. (The identification property name must begin with a letter and contain only alphanumeric characters and underscores.)
In the Additional properties required for test object class pane, select the property you want to remove.
Click Remove. Then click Yes to confirm.
In the Additional properties required for test object class pane, select the property you want to rename.
Click Modify. The Identification Property dialog box opens.
Modify the identification property name and click OK.
Tip: To add identification properties after the support class is created, use the Add Identification Property button or select UFT > Add Identification Property in Eclipse.