3.20.3. Deleting from the Object Mapping Editor
Prev | 3.20. Object mapping | Next

### 3.20.3. Deleting from the Object Mapping Editor

1. You can delete items from the Object Mapping Editor using the ”delete” option from the context-sensitive menu.

2. You can also select the item you want to delete and press »DELETE«.

3. If you delete a component name that is still used in a Test Case for this Test Suite it will reappear when you select ”refresh” from the context-sensitive menu.

| If you want to remove all unused mappings from the Object Mapping Editor, then use the Cleanup option (Section 3.20.3.1, “Removing unused component names from the Object Mapping Editor”).

#### 3.20.3.1. Removing unused component names from the Object Mapping Editor

Over time, your Project will change, and these changes may mean that component names you had previously used in Test Suites, then mapped to technical names via the Object Mapping, are no longer used. This results in object mappings in which the component name is no longer used in the test for this AUT. Such component names can be recognized by the fact that Show corresponding specification in the Object Mapping Editor (Section 3.30.3, “Searching for places where a component name has been used”) returns no search results in the search result view (i.e. the component name is no longer used in the test), or if the search result view shows only Test Cases that are used in other AUTs. If you perform Show where used in the Component Names Browser (Section 3.30.3, “Searching for places where a component name has been used”) and the only search result is a mapping, then this is also a component name that is no longer used in the test.

You can delete any component names from the Object Mapping Editor that are unused in the Project for this AUT:

1. In the Object Mapping Editor, select:

   Cleanup-->unused component names

   from the context-sensitive menu.

2. The cleanup operation starts, and a progress dialog is shown while unused names are being searched for. Depending on the size of your Project, this search may take some time.

3. If the Object Mapping Editor contains component names that are not used in any of the Test Suites for this AUT (either component names that are already mapped, or are still unassigned), then they are shown in a Delete unused component names dialog.

   | If no component names are found, then you will see a message informing you of this.

4. In the dialog to delete unused component names, you can see which component names have been identified for deletion. You can deselect individual component names to opt not to delete them. Once you have specified which component names should be deleted, click ”OK”.

5. The component names you specify will be deleted from the Object Mapping Editor. Save the editor to save the changes.

   Removing component names from the Object Mapping Editor does not mean that the component names are deleted from the Project. However, if the deletion from the object map means that the component name is now used nowhere in the Project, then it will appear under the Unused Component Names category in the Component Names Browser and can be deleted from the whole Project (Section 3.15.8, “Deleting unused component names”).