Stage 3: Create Rules to Map the Test Object Class to the Control

To support a custom control, UFT must be able to identify which test object class to use for a specific control. Therefore, a crucial stage in developing support for a custom control, is creating rules that enable UFT to correctly map the control to the test object class that represents it.

Extensibility Accelerator provides a point-and-click mechanism that helps you automate this process. You click on controls that you want to be represented by the test object class, and Extensibility Accelerator generates mapping rules for the test object class based on the properties of the selected controls.

These rules are stored in the toolkit configuration file (WebExtSample.xml), in Identification elements defined within each Control element. Each Control element defines a test object class. The Identification element specifies which controls should be represented by that test object class.

In this section, you use the mechanism provided in the Map to Controls Tab (Test Object Class Designer), to create mapping rules for the sample Book control.

  1. Continue to Stage 4: Define the WebExtBook's List of Operations and Identification Properties.