Name Mapping - Required Children

Applies to TestComplete 15.70, last modified on December 17, 2024

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.

You cannot specify required children for objects you map by using selectors.

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 Name Mapping - Extended Search.

See Also

Name Mapping
Name Mapping
Name Mapping - Extended Search

Highlight search results