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

Object Descriptions

A test object description consists of the object's name and a set of identification properties that, when combined, uniquely identify a specific user interface object. The test object descriptions must uniquely identify different test objects that belong to the same parent. The test object description is stored with the UFT GUI test and is used to identify the specific object.

The test object's name needs to be meaningful to the UFT user, preferably using terminology that is relevant to your technology or environment. UFT displays this name in the Keyword View, in the Editor, and in the object repository. This name is not used for object identification and therefore does not have to remain constant in the application.

For example, the test object name can be language-dependent. The UFT user can create a test with the application running in one language, creating test objects with names in that language. The user can then run the test on the same application in another language. The names of test objects in the test remain in the original language, but UFT can correctly recognize the test objects based on their description.

The description must include the following items that are used to uniquely identify the object:

For example, consider a check box displaying the label show picture. This check box has the following properties:

The object description must be provided in XML format according to the AppDescription Schema.

The description must include the test object class, the names and values of all of the identification properties that are part of the test object description, and a test object name. In addition, the description must recursively describe all of the selected object's parents, up to the root of the hierarchy that the Testing Agent supports. For each parent object that is described, all of the information described above must be provided.

In the testing environment XML, set the ForDescription attribute to true for any identification property that you include in the description.

For more information, see Implementing BuildDescription: Map an Object ID to a Description.