Use the Remote Object Spy

Relevant for: GUI tests and components

Use the Remote Object Spy when working with Web applications running in Safari on a remote Mac computer. The Remote Object Spy is similar in ability to the Object Spy. For details, see Use the Object Spy.

Note: Some steps are performed in UFT One, and others are performed on the Mac computer. Perform any steps on the Mac directly on the Mac computer, using a remote access program.

Access the Remote Object Spy

Do the following before you start:

  • In UFT One, ensure that UFT One is connected to a Remote Mac computer:

    Click the ALM Connection down arrow in the UFT One toolbar and select Remote Connection .

  • On the Mac, open Safari to the page containing the object on which you want to spy. Make sure that the relevant object is visible.

To access the Remote Object Spy:

  1. Ensure that a GUI test or action is in focus in the document pane or selected in the Solution Explorer.
  2. In the toolbar, click the down arrow near the Object Identification Center toolbar button, and select the Remote Object Spy option.

    Alternatively, you can spy on objects in Safari on a remote Mac using the Remote Object Spy in the OIC. This enables you to spy on multiple objects at a time. For details, see To spy on a remote Mac computer.

Back to top

Select the application object

Once your Remote Object Spy is open, use your mouse on the Mac to select the object you want to spy on.

  1. In UFT One, click the pointing hand. On the Mac, this changes the UFT One Agent Extension icon in the Safari toolbar to a UFT One Spy button .

    Spy mode is now active.

    Tip: If you need to, suspend Spy mode while you access your object. For example, you may need to open Web pages on the Mac, or move applications around.

  2. When Spy mode is active, mouse over Web objects in Safari to display the relevant Web element's class and html tag properties.

    Use these details to identify the object you want to Spy, and then click that object.

    The Remote Object Spy captures the object's properties and hierarchy, and displays the information in UFT One.

Back to top

Use your selected object and details

Once your object is displayed in UFT One, do any of the following:

Add your object to an object repository

Click Add to Repository to add the object currently selected in the Object hierarchy tree to the object repository currently listed in the dropdown list.

Note: The object repository dropdown list is read-only and you cannot select another repository from the list.

Copy description properties

Click Copy description properties to Clipboard to copy all of the properties and values for the object currently selected in the Object hierarchy tree. You can paste the copied data from the Clipboard into any document.

Create a default step

Drag an object from the Remote Object Spy directly into your test or component for UFT One to create a default step with the object.

Highlight an object

Click Highlight in Application to highlight the object in Safari on the Mac.

UFT One highlights only objects that are currently visible on the Mac computer.

View object details

In the Remote Object Spy, click around to view the test object's properties and operations, and its native properties and operations.

Select other test objects currently displayed in the Object hierarchy tree to view their properties, values, or operations.

Back to top

Remote Object Spy not working after running a recorded test

After you run a recorded test on an application, the Remote Object Spy may not work when you use it to spy on the application again.

Workaround

  1. Close the Remote Object Spy dialog box.

  2. Go to Safari and click the UFT One Remote Agent icon in the Safari toolbar.

  3. Reopen the Remote Object Spy and try again.

If the Remote Object Spy still does not work, repeat the workaround again.

Back to top

See also: