Work with Apple Safari on a remote Mac computer

You can use OpenText Functional Testing to test Web applications on an Apple Safari browser that is running on a remote Mac computer. OpenText Functional Testing uses the WebSockets protocol to connect to the Mac computer that you specify.

Test Web applications on Safari

To test Web applications on Safari, install the OpenText UFT Agent Safari extension on your Mac computer. For details, see Install and configure the OpenText UFT Agent Safari extension on Mac.

Recording steps and learning objects (in the Object Repository Window or Manager) are not supported on Safari. Use the Remote Object Spy on a Safari browser to view the properties and operations of Web controls, and optionally, add the corresponding test objects to your object repository.

It may be more convenient to create and edit your object repositories, tests and components working with a supported browser installed locally on the OpenText Functional Testing computer, then connect to a remote Mac computer, fine-tune your tests, and run them on Safari.

Tip: Use Google Chrome to create, edit, and debug your tests and components, as Chrome and Safari render Web pages similarly.

When your basic test is designed, connect OpenText Functional Testing to a remote Mac computer running Safari, and fine-tune or debug your test based on the object properties available on Safari:

  • Use the Remote Object Spy to see how OpenText Functional Testing recognizes the objects in your application.

  • View object properties using statement completion for the Object method.

    Note: Statement completion for the Object method is only available if the connection to the remote Mac is fast enough.

  • Create standard checkpoints and output value steps on objects displayed in the Safari browser. Use the Design > Checkpoint and Design > Output Value > Standard Output Value commands.

Note that only Web test object steps can run on Safari. All other steps, including Utility object steps, such as SystemUtil.Run, run locally on the OpenText Functional Testing computer.

Back to top

Set up multiple connections to your Mac computer

Multiple users from different OpenText Functional Testing instances can connect to the same Mac simultaneously using different ports.

Each user must install the OpenText UFT Agent Safari extension in their Mac user account, and configure the relevant port number in OpenText Functional Testing and in the OpenText UFT Agent Safari extension on the Mac.

The Mac connection information is in the Record and Run settings, which are defined per test, therefore you can connect to different Macs or different ports when running different tests.

However, OpenText Functional Testing can connect to only one Mac at any time.

OpenText Functional Testing attempts to set up a remote connection using the RemoteConnection.Connect method, but... Result

... it is already connected to the same Mac and port with the same security level.

The existing connection is used and a statement about this is added to the test results.

... it is already connected using a different Mac, port, or security level.

A run error occurs on the Connect step.
OpenText Functional Testing attempts to set up a remote connection using the Record and Run settings, but... Result

... it is already connected with the same security level or higher (to the same Mac and port, or different ones).

This means OpenText Functional Testing initiates a connection without SSL, or it is initiating an SSL connection and the existing connection is also using SSL.

The existing connection is used and a warning is added to the test results.

This may lead to a situation where steps that were to be carried out on the new connection on a different Mac or port, are carried out on the existing one.

... it is already connected with a lower security level (to the same Mac and port, or different ones).

This means OpenText Functional Testing initiates an SSL connection but the existing connection is not using SSL.

The existing connection is closed and a new connection is initiated. (The new connection can succeed only if the OpenText UFT Agent Safari extension on the Mac is also set up to require an SSL connection.)

Notifications about the connection changes are added to the test results.

This behavior prevents communication intended for a secure connection from being carried out on a non-secured connection.

Back to top

See also: