Required Children

Applies to TestComplete 14.0, last modified on January 23, 2019

An application can have several objects of the same type that have no unique properties. For example, DIV elements in a web application. A desktop application may spawn two processes with the same name, and only one process may have windows and UI objects. This may cause issues with object identification during the test run.

To avoid possible issues, you can map such objects by their unique child objects:

  1. Select the object in the Name Mapping repository.

  2. Switch to the Required Children tabbed page of the editor. It shows all the mapped child objects of the selected object.

    If the needed child objects are not in the Name Mapping repository, but you see them in the Object Browser, add them to the repository manually.

  3. Select the child objects that are unique to this object.

    Required child objects
  4. Save the changes.

Note: If your tests do not interact with non-unique objects directly, you can remove them from the Name Mapping repository. In this case, to access their child objects, use extended search. See Extended Search.

See Also

Name Mapping
About Name Mapping
Extended Search

Highlight search results