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 OpenText Functional Testing, 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
Prerequisites:
-
In OpenText Functional Testing, ensure that OpenText Functional Testing is connected to a Remote Mac computer:
Click the ALM Connection down arrow in the OpenText Functional Testing 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:
- Ensure that a GUI test or action is in focus in the document pane or selected in the Solution Explorer.
-
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.
Select the application object
With the Remote Object Spy open, use your mouse on the Mac to select the object you want to spy on.
-
In OpenText Functional Testing, click the pointing hand. On the Mac, this changes the OpenText Functional Testing Agent Extension icon in the Safari toolbar to an OpenText Functional Testing 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.
To suspend Spy mode:Pause spying on all open Safari browsers
Click the Pause/Resume OpenText Functional Testing Spy switch in the Safari toolbar.
Momentarily suspend Spy mode Hold the Mac's Command key .
Note: The Command key may be mapped to your Windows start key, or to the ALT key, depending on how you connect to your Mac computer.
-
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 OpenText Functional Testing.
Use your selected object and details
With your object displayed in OpenText Functional Testing, do any of the following:
- Add your object to an object repository
- Copy description properties
- Create a default step
- Highlight an object
- View object details
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.
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.
Drag an object from the Remote Object Spy directly into your test or component for OpenText Functional Testing to create a default step with the object.
Click Highlight in Application to highlight the object in Safari on the Mac.
OpenText Functional Testing highlights only objects that are currently visible on the Mac computer.
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.
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
-
Close the Remote Object Spy dialog box.
-
Go to Safari and click the OpenText Functional Testing Remote Agent icon in the Safari toolbar.
-
Reopen the Remote Object Spy and try again.
If the Remote Object Spy still does not work, repeat the workaround again.
See also: