Setting environment variables for UI Test Agent

You must set the environment variable to start the execution agent automatically when you start HCL OneTest UI on macOS.

Procedure

  1. Perform the following tasks if you want to start the execution agent automatically when you click the HCL OneTest UI icon:
    • On Linux, save the following command in the /etc/environment file:

      export TEST_WORKBENCH_HOME=<hotui installation directory>

    • On macOS, run the following command:

      launchctl setenv TEST_WORKBENCH_HOME <hotui installation directory>

      For example, launchctl setenv TEST_WORKBENCH_HOME /Applications/HCL/SDP

      Note: On macOS, when you start HCL OneTest UI from the terminal, you must save the following commands in the ~/.zshenv file to start execution agent also:

      export TEST_WORKBENCH_HOME=<hotui installation directory>

      For example, export TEST_WORKBENCH_HOME=/Applications/HCL/SDP

  2. Start HCL OneTest UI.

Results

You have set the environment variables to start the UI Test Agent automatically in HCL OneTest UI.