Appium setup for windows

In this article, we will see basic setup of Appium, where we can run appium tests on mobile handset or tablet or mobile emulators

Refer below links to know the concept behind appium

Follow the below steps one by one to accomplish the appium setup…

Step1 : For the selenium setup

please refer selenium webDriver setup
[Above link describes, selenium with eclipse setup]

Step2 : Install Android SDK
Open the above link and scroll down to the screen, chose the recommended option and install (select a folder to install)                        [screenshot]
Once install done, you will get folder structure as below
Click on SDK Manager.exe, to install required packages
check the following options and click on install packages

  • Android SDK Platform-tools
  • Android SDK Build-tools
  • Respective Android API level (i.e which version of android OS running on your mobile)
    [e.g – Android 5.1.1 (API 22)]
    Scroll down to the below and check
  • Google USB driver

Set environmental variable: [How to : set Env variable]

Add environmental variable
variable name: ANDROID_HOME
value: c:MyFilesSeleniumAppiumAndroidSDKInstall

Edit environmental variable
variable name: path
value: ;C:MyFilesSeleniumAppiumAndroidSDKInstalltools; C:MyFilesSeleniumAppiumAndroidSDKInstallplatform-tools;

Step3 : Enable Developer options 

On mobiles or tablets
navigate to Settings > About / About phone
Scroll down and tap around 7 times on Build number
Confirmation popup comes with text “Developer mode has been enabled” or “you are now a developer”
Now come back to Settings, and you can see Developer options, turn ON this option.

Now connect mobile / tablet to the computer, you will see device shows “USB debugging connected”

Step4 : get device information by ADB commands

[Device can be mobile, tablet or emulators]
Connect device to computer in debug mode, open command prompt and type
adb devices : lists devices connected to computer

If in case, adb devices shows no result, better to use below troubleshooting steps:
type: adb kill-server and key press enter
then, adb start-server and key press enter
then try, adb devices [you should be able to see the device details now]

Note: From the above screenshot, adb devices have any one of the states
[Serial number] [state]
if device is connected, then state shows “device”,
if device is not connected properlly or not responding, then state shows “offline”
If no device connected, then result will be blank

Solution if adb command doesn’t work directly from start –> Run

Navigate to the platform-tools folder under AndroidSDKInstall folder, key press SHIFT and right click then select  “Open command prompt here”, now adb command should work.


Step5 : Download Appium language bindings

We use java language to automate, so download appium-java jar file appiumjavaclient
go to:
elect language as, Java and download the jar file. [java-client-x.x.x.jar]


Step6 : Appium.exe for windows

Navigate to this link and download latest appium for windwos zip file
install AppiumForwindows and open the exe to get window as shown below sceeenshot


Step7 : download and install node.js

Navigate to
Select respective installer (32 or 64 bit) depending on your OS to download and install as usual way.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s