Delete Mapped Objects Manually

Applies to TestComplete 15.0, last modified on November 17, 2021

You can delete unneeded objects from the Name Mapping repository. For example, you can delete objects that no longer exist in your tested application, or that are not used in your tests.

Make sure that your tests do not use the deleted mapped objects or aliases, otherwise the tests will fail.

To delete an object with its child objects

  1. Select the object in the Name Mapping editor.

    Tip: You can use Ctrl- and Shift-clicks for multiple selection.
  2. Press Del.

  3. TestComplete will display a message asking whether you want to delete the child objects of the selected object as well. Click Yes.

  4. If you are deleting an alias and the appropriate mapped object has no other aliases, TestComplete will display a message suggesting that you delete the mapped object from the Name Mapping repository. To delete the object, click Yes to All.

To delete an object but keep its child objects

From the Mapped Objects tree
  1. Select the object in the Mapped Objects tree. You can select it directly, or you can right-click the object’s alias in the Aliases tree and then click Find Mapped Object.

  2. Press Del.

  3. TestComplete will display a message asking whether you want to delete the child objects as well. Click No.

This will delete the object from the Mapped Objects tree. The object’s children will remain, and will move one level up in the hierarchy (they will become the immediate children of the removed object’s parent object). The object’s aliases will be kept in the Aliases tree, therefore your existing tests will not fail. The aliases will refer to an empty stub object that has only child aliases.

From the Aliases tree
  1. Right-click the object in the Aliases tree.

  2. Click Exclude Items.

This will delete the object from the Aliases tree. The object’s children will remain, and will move one level up in the hierarchy (they will become the immediate children of the removed object’s parent object). The mapped object with which the removed alias was associated will also be kept in the Mapped Objects tree.

Notes

The top-level Sys and Mobile objects cannot be deleted from the Mapped Objects tree.

See Also

Delete Objects From the Name Mapping Repository
How To
Delete Mapped Objects From Tests
Mapping Objects Manually

Highlight search results