In the Map Object dialog, you select the object you want to add to the Name Mapping repository. The dialog appears when you do any of the following:
Click Map Object From Screen on the Tools toolbar.
Click Add Object on the Name Mapping repository toolbar.
Click Map New Object on the first page of the wizard that appears when you add a keyword test operation that works with objects and controls to your keyword test.
You can specify the object to map in one of the following ways:
Note for mobile testing: Select the object on the Mobile Screen (make sure the Mobile Screen window is not hidden before selecting the object). Also note that the application under test and the mobile device, where the application is running, must be prepared for testing for TestComplete to be able to access the application’s objects.
Pick the object with the target glyph
Drag the glyph to the desired onscreen object and drop it once the red frame appears around the object.
Point and press a shortcut
Click the button, activate the desired object in the application and position the mouse pointer over it. When the red frame appears around the object, press the Select object shortcut, Shift+Ctrl+A. (The shortcut can be changed in the Global Shortcuts options.)
Using the second approach may be more convenient if you need to manipulate the application before selecting an object. For example, you can open and point to popup windows, tooltips, and other objects that are hidden when being inactive.
To make sure you have selected the correct object, click Highlight. TestComplete will highlight the appropriate object on the desktop screen or in the Mobile Screen window.
To map the selected object, click OK. To close the dialog without creating a name mapping item, press Cancel.
When you click OK, TestComplete will do the following:
If the project does not have the Name Mapping project item, TestComplete will prompt you to add it.
Depending on the Name Mapping mode and your tested application, TestComplete will either map all the object’s parent objects automatically, or prompt you to map them, either automatically or manually.