Map an unidentified or custom class to a Standard Windows class
Relevant for: GUI tests and components
This task describes how to map an unidentified or custom class to a standard Windows class. This instructs UFT One to identify objects of the specified class in the same way as it identifies objects of the Windows class to which it is mapped.
-
In the Object Identification dialog box (Tools > Object Identification), in the Environment drop-down list, select Standard Windows and then click the User-defined button.
-
In the Object Mapping Dialog Box, click the pointing hand and then click the object whose class you want to add as a user-defined test objectclass. The name of the user-defined object is displayed in the Class name box.
-
In the Map to box, select the standard object class to which you want to map your user-defined test object class and click Add. The class name and mapping is added to the object mapping list.
-
Click OK. The Object Mapping dialog box closes and your object is added to the list of standard Windows test object classes as a user-defined test object class. Note that your object has an icon with a red U in the lower-right corner, identifying it as a user-defined class.
-
Configure the object identification settings for your user defined test object class just as you would any other test object class. For details, see Configure object identification for a test object class.
Caution: If you click the down arrow on the Reset Test Object button and select Reset Environment, when Standard Windows is selected in the Environment box, all of the user-defined test object classes are deleted.