TestComplete Tutorial 16 - How TestComplete searches for mapped objects

 When a test tries to get an object by its alias, TestComplete does the following:

  1. In the Mapped Objects tree, it finds an item that corresponds to the alias.
  2. Searches for the corresponding object in your system, starting from the top-level item in the Mapped Objects tree and moving down the hierarchy to the target item.It searches for each item on the appropriate level of the application hierarchy. If Extended Find is enabled, it will also search for the item on the following hierarchy levels as well.
To find each item, it uses its specified identification criteria.

Notes -
  • The object hierarchy in the Aliases tree and in the Mapped Objects tree must not contradict the parent-child relationships of the corresponding objects in the application.
  • Unlike aliases, mapped objects cannot be moved to the topmost hierarchy level. The topmost mapped objects can be Sys or Mobile.
  • You can refer to objects in tests by their names both in the Aliases tree and in the Mapped Object tree. In the latter case, precede the object name with NameMapping.Sys or NameMapping.Mobile rather than with the Aliases prefix.
  • If an object does not have an alias, TestComplete will address it by its name in the Mapped Objects tree. If an object has several aliases, TestComplete will use the first alias with the shortest mapped name it finds.

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