Skip to content

Appium windows installation

Dipjyoti Metia edited this page May 12, 2019 · 3 revisions

Node Installation

  • Download node.js installer from here
  • Accept terms and conditions and proceed forward for installation.
  • On Custom Setup window, Select Add to PATH option and proceed Next.
  • Click Install option to proceed with installation.
  • Once Installation is finished, open command prompt and run node -v to check whether it node version installed is returned. e.g $ node -v
    $ v12.2.0

Java 8 JDK Installation

  • Download Java 8 JDK from here
  • Accept license agreement and download jdk-8u201-windows-x64.exe from above link.
  • Install downloaded Java 8 JDK.
  • Configure environment variables:

  • System Properties -> Environment Variables -> System Variables -> New -> JAVA_HOME and Value as C:Program Files\Java\jdk1.8.0_201 (path where JDK is installed)
  • System Properties -> Environment Variables -> System Variables -> Select Path and Edit -> Add %JAVA_HOME%\bin
  • Once Environment variables are configured, open command prompt and run java -v and echo $JAVA_HOME to check whether java version installed is returned. e.g
    $ java -version
    $ java version "1.8.0_201"<br/> Java(TM) SE Runtime Environment (build 1.8.0_201-b13)<br/> Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Appium Installation

  • Open commandprompt as admin and run npm install -g windows-build-tools (takes a while to complete)
  • Open command prompt or terminal and type npm install -g appium to install appium globally.
  • Wait for installation to be completed successfully
  • Check whether Appium is installed properly from command prompt through appium --version command.

Android Studio & SDK Installation

  • Download Android Studio for windows from here

  • Proceed Next and install android studio

  • Open Android studio and create a new project

  • Once Project window is auto launched, click on Install missing platform and sync Project options from message:

  • Wait until gradle sync to be successful.

  • Download and Install HAXM for windows from here

  • Then Switch to Android Studio again and then Select AVD Manager icon in tool bar:

  • Start Android Emulator as shown below:

Configure Android Environment Variables:

(DONT DELETE ANY EXISTING PATHS WHILE SETTING BELOW)

  • Copy the SDK path from Android Studio as shown below: File -> Project Structure screenshot
  • Goto Configure environment variables: System Properties -> Environment Variables -> System Variables -> New -> ANDROID_HOME and Value as C:Users\YourUser\AppData\Local\Android\SDK (path where SDK is installed)
  • Add the Android sdk paths into your existing PATH variable value as %ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\build-tools

Health Check:

  • Install Appium Doctor through terminal like npm install -g appium-doctor
  • Once installation is successful, run appium-doctor --android to check health of android appium setup. If everything is GREEN then we are good to start.

Install Appium Desktop:

  • Download and Install Appium Desktop from here

Recommended IDE

  • Please install Community Edition of Intellij IDEA from here