Developing The Basic UFT Testing Agent > Developing Support for the Test Object Model

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 to recognize and identify each individual object and the hierarchy of the different objects in an application.

The Testing Agent must enable UFT 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 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 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 specifies.

For more information see: