Configure your environment variables – Windows

In order to be able to be able to write and run automated tests you will need to setup your machines environment variables. Environment variables basically tells the machine what directory to install files in, where to find user profiles, where to store temporary files, what directory certain files and settings are in, as well as other things.

We will need to add the location of our Java development kit (JDK) and Software development kit (SDK) to the user variables.

To find out how to edit / add environment variables on a windows machine click here.

You will need to add the following to the User variables:

  • ANDROID_HOME – path to java jdk
  • JAVA_HOME – path to java jdk

 

environment
The user variables should look like this

After adding the environment variables you may need to restart your machine in order it to take effect.

Leave a Reply