Install the connector on a Mac machine

The Device Connector is a standalone component for connecting devices to UFT Mobile. You can install the connector as a standalone component on a Mac machine, and configure it to connect to the UFT Mobile server. Devices connected to distributed connector machines become part of the UFT Mobile device lab.

This section describes how to install the connector on a Mac machine for testing iOS or Android phones.

For details on how to see all your connectors, see View and manage connectors (Admin only).

Before you start

The standalone connector for UFT Mobile 3.5 can be installed as an upgrade to a UFT Mobile 3.0 Connector.

Before installing or updating the connector, check that your machine complies with the recommended system requirements and that your devices are supported. For details, see system requirements and Connect devices to UFT Mobile.

For new installation only:

  1. The server should be accessible to the connector. Navigate to: http/s://<UFT Mobile server IP address>:<server port> and check that you can access UFT Mobile.
  2. Obtain an access key for the device from your admin. You will be prompted for the key during the connector installation.
    • Admin user: select the ACCESS KEYS tab. Click Generate New and provide a name, type (Connector), expiration date, description (optional). Then, click GENERATE.
    • Non-admin user: request one from your admin. Select Contact Your Admin from the Help menu (upper right).

Back to top

Set up your Mac machine

  1. The following are prerequisites for installing the connector: OpenSSL-1.1.0h or LibreSSL-2.2.7.
  2. Set up your Mac machine to detect the devices you want to connect to UFT Mobile by performing the following steps:

  3. Connect your devices to your machine via a USB port. For a new installation of Mac OS, make sure that you open iTunes before plugging in a device.

    On some devices, when you connect the device via USB, the device issues a security alert. Accept the warning.

    Tip: Some phones have USB settings (Swipe left on the app list, tap Settings, and look for a USB option) that allow the data connection to be enabled separately from the charging connection. If your phone has this option, check the settings to ensure your USB data connection is enabled.

  4. Download the Mac connector in one of the following ways:

    • Admin user: Click Download Connector in the CONNECTORS page.
    • Non-admin user: Select Download Connector from the Help menu in the upper right corner of the UFT Mobile console.

      MacOS Catalina and later: If the UFTM connector software is downloaded directly to your Mac from a Micro Focus official web site, remove the metadata in the downloaded file by running the following command:
    • Terminal: xattr -c fileName.zip

      Example: xattr -c install-connector-macos-x64-X.XX-XXXXX.zip

  5. Extract the files: 
    Terminal: unzip <name of macOS connector installation file>.zip –d <target folder>
  6. Move the connector installation folder to the Applications folder.
    Terminal: cp –r desktop/<target folder> /Applications
  7. Change folder permissions using Terminal:
    1. Change permissions on the connector installation folder and subfolders:
       sudo chmod -R 777 /Applications/<target folder>
    1. Change permissions on the folder that you will be using for temporary files during the installation (Default: tmp):
      sudo chmod -R 777 /private/tmp

  8. MacOS Mojave and later: Verify that the installer has full disk permissions:

    1. Open System Preferences
    2. In Security & Privacy, select the Privacy tab
    3. Select Full Disk Access, then click the lock icon. Use your Touch ID or enter your system administrator credentials and click Unlock.
    4. Click the + button and add the UFT Mobile install.app.


Install with the installation wizard

  1. In the Applications folder, navigate to your connector installation folder and locate the install file (.app file).
  2. Run the file as root or admin user.

  3. Note: Accept any popups that UFT Mobile is trying to install a new helper tool, by entering your user password.

  4. The Installation wizard opens. Read the contents and click Next.

  5. Fill in the information or answer the questions in each of the Installation wizard pages following these guidelines:

    Authentication
    Enter your credentials. For UFT Mobile, enter the access key provided by your admin.

    UFTM SaaS: The SSL Enabled option should be selected.

    If connecting over a proxy, select Server address in the proxy section, and specify the server, port, and credentials if required.
    Connector configuration
    Provide a meaningful name for the connector, as this will allow you to effectively filter devices based on connector names. Enter the Connector's IP address or FQDN, or accept the defaults.

Back to top

Install with Terminal

  1. Navigate to the following folder:
    cd /Applications/<Connector installation folder>/install.app/Contents/MacOS

  2. Run ./install. Press Enter and Y/N when prompted to do so, for example to accept the license agreement.
  3. Fill in the information or answer the questions in each of the Installation wizard pages following these guidelines:

    Authentication
    Enter your credentials. For UFT Mobile, enter the access key provided by your admin.
    If connecting over a proxy, select Server address in the proxy section, and specify the server, port, and credentials if required.
    Connector configuration
    Provide a meaningful name for the connector, as this will allow you to effectively filter devices based on connector names. Enter the Connector's IP address or FQDN, or accept the defaults.
  4. For details on how to change the configuration after the installation, see Reconfigure the Mac connector.

Verify device connection and connect devices

After the installation, if you have Xcode installed, you can check whether the machine recognizes an iOS device using the instruments command:

instruments -s devices

The result of this command should be a list of devices IDs (UDID). If your device is not listed when connected to the USB port, this may mean that:

  • The USB port is not working (hardware problem).
  • You are not using the most up-to-date version of iTunes. Upgrade your version of iTunes.

To connect iOS devices through a Mac connector to UFT Mobile:

  1. Codesign the Agent apps and distribute them to the connector machine. For details, see Re-sign the Agent apps.
  2. If the Mac connector is running, restart it.

Caution: To ensure integrity and confidentiality of the information stored with UFT Mobile, we strongly recommend that you incorporate filesystem monitoring on the installation and temporary folders.

Back to top

Start or stop the Mac connector

When you run the installation, by default the Mac connector is installed as a Mac service. You are prompted to start this service at the end of the installation. To stop the service, perform an uninstall.

If you chose not to start the service at the conclusion of the installation, you can stop and start the connector at a later time as follows:

From the Terminal window, change directory to /opt/UFTMobile/scripts and run:

  • To start the connector (method 1) : sudo launchctl load /Library/LaunchDaemons/UFTM.plist
  • To start the connector (method 2) : sudo /Users/<user name used when installing the connector>/UFTM_service start
  • To restart the connector: sudo /Users/<user name used when installing the connector>/UFTM_service restart
  • To stop the connector: sudo /Users/<user name used when installing the connector>/UFTM_service stop

Note: These commands require root access.

Back to top

Reconfigure the Mac connector

If you need to modify your connector details , for example to switch between an on-premises UFT Mobile server or a UFT Mobile hosted device lab, of if you need to change the server or connector details, you can reconfigure the connector’s settings without having to reinstall it.

To reconfigure the connector:

Double-click UFTM_Update in the machine's Applications > UFT Mobile Connector folder.

To reconfigure from Terminal:

  1. Change directory to the installation folder. cd /opt/UFTMobile/installation/
  2. Run the upgrade script:
    ./UFTM_update.command

Back to top

Uninstall the Mac connector

You can remove the connector for Mac by running the uninstall program on the Mac OS machine, or via terminal. The uninstall requires root or admin permissions.

Note: If you installed the connector via terminal (PuTTY), you can only uninstall it from a terminal.

To uninstall the connector:

Double-click UFTM_Uninstall in the machine's Applications > UFT Mobile Connector folder.

To uninstall using Terminal:

  1. Change directory to the installation folder. cd /opt/UFTMobile/installation/
  2. Run the uninstall script:
    ./UFTM_uninstall.command

See also: