Setting or changing the ANDROID_HOME path in Windows operating systems

When you want to run or play back recorded mobile tests by using the UI Test agent in HCL DevOps Test UI (Test UI), you must ensure that the ANDROID_HOME path is set correctly in computers that run on Windows operating systems.

About this task

You must set up the ANDROID_HOME path as an environment variable, if you use the UI Test agent to playback recorded mobile tests for Android applications.

You must set up the environment variable on all computers from which you want to run mobile tests for Android applications.
Note: If you encounter errors about the Android sdk path not found when you attempt to play back mobile tests for Android applications on Windows, you might want to check if the value of the ANDROID_HOME environment variable is set correctly or change the value to point to the correct path.

Procedure

  1. Perform any of the following searches in the Windows Search field in the Task bar that depends on the version of Windows that is installed on your computer:
    • Enter Editing System variables
    • Enter View advanced system settings

    The Advanced tab of the System Properties is displayed.

  2. Click Environment Variables.

    The Environment variables dialog is displayed.

  3. Select any of the following options to set or change the environment variable:
    • To set the environment variable, go to Step 4.
    • To change the value of the environment variable, go to Step 5.
  4. Perform the following steps to set the environment variable:
    1. Click New in the System variables section.

      The New System Variable dialog is displayed.

    2. Enter ANDROID_HOME in the Variable name field.
    3. Enter the location where the Android SDK is installed on your computer in the Variable value field.
    4. Click OK.

      The ANDROID_HOME variable is added to the list of the system variables.

    5. Go to Step 6.
  5. Perform the following steps to change the value of the environment variable:
    1. Select the variable ANDROID_HOME from the System variables section, and then click Edit.

      The Edit System Variable dialog is displayed.

    2. Change the value of the variable ANDROID_HOME to <user-home>/Android/Sdk.
      Note: You must point to the directory where you installed the Android SDK components. It can be the default directory as <user-home>/Android/Sdk or to the directory that contains the Android SDK.
    3. Click OK.

      The value of the ANDROID_HOME variable is updated in the list of the system variables.

    4. Go to Step 6.
  6. Restart the computer.

Results

You have set or changed the path to the ANDROID_HOME environment variable in Windows operating systems.

What to do next

You can play back the recorded tests by using the UI Test agent on computers that run on Windows operating systems.