TestComplete Tutorial 15 - Aliases and mapped objects

 The Name Mapping repository includes two trees:


Mapped Objects (hidden by default) - Shows all the objects (windows, dialogs, pages, and controls) found in your tested application.

Typically, the Mapped Object tree matches the application’s object hierarchy. However, for web and mobile applications, it can omit some intermediate levels.

The mapped name shows the object position in the Mapped Objects tree:



You can use the mapped name to address objects from tests. However, it is more convenient to use aliases for this purpose.

Aliases - Objects in the Name Mapping repository can have an alias – a user-friendly name, for example, ButtonOK or linkProducts. Aliases are used to refer to objects in tests.



In script tests, you use full aliases, that is, the full hierarchy path of the object in the Aliases tree. 
In keyword tests, you do not actually see the full hierarchy path, because TestComplete shows a short notation for easy viewing.

 











Comments

Popular posts from this blog

TestComplete Tutorial 6 - Object Identification in TestComplete

TestComplete Tutorial 19 - Adding Objects to the Name Mapping Repository

TestComplete Tutorial 1 - Introduction to TestComplete Automation Tool