Skip to main content

Appium - Setting Up Your Testing Environment (Windows)

Appium is platform independent so executing Appium scripts is largely consistent across all the major platforms (Linux, Mac, and Windows).

In this section, we will discuss how can you setup Appium and it’s dependencies on Windows platforms.

Installation on Windows

Software required:

  1. Java
  2. Android SDK (Android Studio) 
  3. Node.js 
  4. Appium Desktop Server 

1) Install JAVA and set JAVA_HOME 

  1. Install the Java Development Kit Software. 
  2. Set JAVA_HOME
    • Right click My Computer and select Properties. 
    • On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, like: C:\Program Files\Java\jdk-11.0.7
    • You can check it by typing $ java -version command at the command prompt.
Figure-1: JAVA_HOME System Variable. 

Figure-2: PATH System Variable. 

2) Install Android Studio and set ANDROID_HOME 

  1. Install Android Studio and the SDK:
    • Go to: https://developer.android.com/studio/index.html 
    • Download and Install Android Studio 
    • Open Android Studio and then download the needed Android SDK files from Tools > Android > SDK Manager 
  2. Set ANDROID_HOME: 
    • Right click My Computer and select Properties. 
    • On the Advanced tab, select Environment Variables, and then add ANDROID_HOME to point to where the Android SDK files is located, like: C:\Android\sdk\
    • Verify it on the Command prompt using $ echo %ANDROID_HOME% command. Output must display the SDK path. 

Figure-3: ANDROID_HOME System Variable. 

3) Installation of Node.js

  1. Install Node.js from: https://nodejs.org/en/download/
  2. You can verify installation by entering $ npm -v command at the command prompt and it will display the version. 


Figure-4: Node.js version 

4) Installation of Appium desktop server

  1. Goto the Appium github project and Download the relevant Appium Desktop .exe file.
  2. Install it and Open Appium.exe file and start the server 
  3. A Terminal should appear saying ‘The server is running’ 


Figure-5: Appium Desktop Application 



Figure-6: Appium Server is running on 0.0.0.0:4723 
Software testing is a sport like hunting, it's bughunting.
Please follow the above steps correctly in order to have a seamless Appium setup experience.  

Comments