Applies to TestComplete 14.20, last modified on September 11, 2019

You can add objects to the Name Mapping repository directly from your application or from TestComplete IDE:

To map a single object
  1. (For mobile applications) Open the Mobile Screen window.

  2. Do one of the following:

    – or –

  3. If your project does not have the NameMapping item yet, TestComplete prompts you to add it.

  4. In the resulting dialog, choose if you want to automatically map the object with the default alias and identification properties, or if you want to specify them manually.

    If you have chosen to use the default settings, then you are done.

    If you have chosen to customize them, move to the next step.

  5. If the parent objects of the selected object are not in the Name Mapping repository yet, TestComplete displays a list of them. Click Yes to continue.

  6. For each object being added to the Name Mapping repository:

    • If there are several name mapping templates that match this object, TestComplete prompts you to select the template to use.

    • TestComplete displays the Object Name Mapping dialog where you can enter the object alias and select the identification properties.

To batch-map child objects
  1. Do one of the following:

    • In the Name Mapping editor, right-click the parent object in the Mapped Objects tree and select Map Child Objects from the context menu.

    • In the Object Browser, right-click the parent object and select Map Child Objects from the context menu.

  2. In the dialog, select the check boxes next to the child objects you want to map.

    Selecting child objects to add to the name map
  3. To map all the objects automatically using the default aliases and identification properties, select the Map objects automatically check box and click OK.

    To specify the object aliases and identification properties manually, leave the Map objects automatically check box unchecked, click OK and follow the on-screen instructions.

See Also

Adding Objects to the Name Mapping Repository
About Name Mapping
Mapping Objects Automatically
Mapping Objects From Tests

Highlight search results