Developing Support for the Test Object Model

In addition to recognizing the types of objects that exist in your environment, the Testing Agent must enable UFT One to recognize and identify each individual object and the hierarchy of the different objects in an application.

The Testing Agent must enable UFT One to identify and access any user interface object that a user might include in a test. An object can be identified by a description or an object ID (also referred to as a run-time ID).

The Testing Agent must provide a description and an object ID for each object in the application being tested. You must implement the BuildDescription and FindObjectId2 (or FindObjectId) methods to map object IDs to test object descriptions and vice versa. In addition, implement the GetDisplayName method to return the test object name.

UFT One recognizes all test objects as belonging to a hierarchy. For example, a browser may contain a frame that contains an edit field and several buttons. This adds context to object identification and groups related objects together, making tests easier to understand.

UFT One needs to be able to traverse the test object hierarchy, starting from any test object. For this purpose, you must implement the GetParent and GetChildren methods. The methods must be able to return the appropriate information for any test object that UFT One specifies.

For more information see: