Copying an Object Map Item

You can copy and paste object map entries within or between object maps. For example, if the same functionality exists in two separate test applications, you might copy a portion of one object map into another object map.

  1. Choose View > Asset Browser or select Get Started > Asset Browser in the Start Screen.
  2. From the Asset Types list, select Object Map. Any existing object maps for the selected project display in the right pane.
    Tip: If you do not see the object map that you want to edit, ensure that the correct project is selected in the Active Project list.
  3. Choose one of the following:
    • Double-click the object map that includes the object map item that you want to copy.
    • Right-click the object map that includes the object map item that you want to copy and choose Open.
    The object map displays a hierarchy of the object map items and the locator associated with each item.
    Note: If another user is currently editing the object map that you select, a message box notifies you and names the user who currently has the object map locked.
  4. Click Edit. By default, the object map is read only. Clicking Edit gives you read/write access and ensures that no other users can edit the entries while you are modifying them. You can also press F2 to edit the currently selected field in the object map. The Edit button changes to Revert. If you want to undo any changes that you make during this session, click Revert.
  5. Navigate to the object map item that you want to copy. For example, you might need to expand a node to locate the item that you want to copy.
  6. Choose one of the following:
    • Right-click the object map item that you want to copy and choose Copy tree.
    • Click the object map item that you want to copy and then choose Edit > Copy.
    • Click the object map item that you want to copy and then press Ctrl+C.
  7. In the object map hierarchy, navigate to the position where you want to paste the item that you copied. For instance, to include an item on the first level of the hierarchy, click the first item name in the item list. To position the copied item a level below a specific item, click the item that you want to position the copied item below. To copy and paste between object maps, you must exit the map where you copied the object map item and open and edit the object map where you want to paste the object map item.
  8. Choose one of the following:
    • Right-click the position in the object map where you want to paste the copied object map item and choose Paste.
    • Click the position in the object map where you want to paste the copied object map item and then choose Edit > Paste.
    • Click the position in the object map where you want to paste the copied object map item and then press Ctrl+V.
    To copy and paste between object maps, ensure that you click Edit before you attempt to paste the object map item. The object map item displays in its new position in the hierarchy.
  9. Perform one of the following steps:
    • Click Save to save your changes and continue working on the object map.

      Silk Test Workbench saves your changes as a new version and the object map mode goes back to read only.

    • Click Save and close to save your changes and exit the object map.

      Silk Test Workbench saves your changes as a new version and the object map is available for other users to modify.

If any existing visual tests or scripts use the object map item name that you moved, you must manually change the visual tests or scripts to use the new position in the hierarchy.