19 Nov 2016

Appium setuping on windows 7

Installation 0 Comment

What is Appium ?

Appium is an open-source tool for automating native, mobile web, and hybrid applications on iOS and Android platforms. Native apps are those written using the iOS, Android, or Windows SDKs. Mobile web apps are web apps accessed using a mobile browser (Appium supports Safari on iOS and Chrome or the built-in ‘Browser’ app on Android). Hybrid applications are web applications (or web pages) in the native browser, such as UIWebView in iOS and WebView in Android (not Safari or Chrome). Hybrid apps are developed using HTML, CSS, and Javascript.

Importantly, Appium is “cross-platform”: it allows you to write tests for multiple platforms (iOS, Android, Windows), using the same API. This enables code reuse between iOS, Android, and Windows test suites.

Environment setup for appium on windows 7.

Required Softwares:

  • java – JDK 1.8
  • Neon Eclipse
  • Apache maven
  • Android SDK
  • Emulator/Real device/
  • Appium server

Adding system variable:


Step 1: Download and install java JDK 1.8 version

1.1 Accept license and click on below statement


1.2 Once installed the java, We should add java path into the system variables.

1.3 Create environment variable for JAVA_HOME. Follow the below step:

Navigate to System Properties ->Advanced System Setting->Environment Variable ->User Variable ->New ->Add path of java JDK folder

Ex: C:\Program Files\Java\jdk1.8.0_101



1.4 Adding java bin folder to System variable->Path->Edit

Ex: C:\Program Files\Java\jdk1.8.0_101\bin



1.5  Now verify the java installation using command prompt

Use java –version to verify java version and output comes like below.


Step 2: Download and install Eclipse



2.1 Unzip the folder and Run the Eclipse

Step 3: Download and install apache maven


3.1 Unzip the folder and save it on the local disk

3.2 Create environment variable for MAVEN_HOME. Follow the below step:

Navigate to System Properties ->Advanced System Setting->Environment Variable ->User Variable ->New ->Add path of Maven folder

Ex: C:\Users\akumar\Downloads\apache-maven-3.3.9



3.3  Adding maven bin folder to System variable->Path->Edit

Ex: C:\Users\akumar\Downloads\apache-maven-3.3.9\bin


3.4 Now verify the mvn installation using command prompt

Use mvn –version to verify maven version and output comes like below.


Step 4: Download and install Android SDK

4.1 Create environment variable for Android_HOME. Follow the below step:

Navigate to System Properties ->Advanced System Setting->Environment Variable ->User Variable ->New ->Add SDK manager path
SDK manager path :


4.2  Adding SDK Platform tools to System variable->Path->Edit

Ex: C:\Users\akumar\AppData\Local\Android\sdk\platform-tools


Step 5: Emulator/ Real device

When building an Android app, it’s important that you always test your application on a real device before releasing it to users. … You can use any Android-powered device as an environment for running, debugging, and testing your applications. So We can use two types of devices like Emulator/Real device.

Real device Testing: If you want to test one android app from your real device, follow the steps.

For test to run on devices, we need to make sure

  • Connect your real device to computer via USB cable 
  • USB Debugging is enabled
  • ADB lists your devices into the connected devices

Enabling USB Debugging:

By default, Android devices do not have USB Debugging enabled, these are under Developer Options. To turn them on,

  • Navigate to Settings app on phone
  • Scroll down and click on the Developer Options
  • Turn on the Developer Options and click the USB Debugging.



Some devices do not have “Developer Options” and hence the way to enable Debugging mode is to launch the Settings screen. Once done, tap “About Phone” and then scroll to the bottom and tap on “Build Number” 7 times (Yes 7 times)!

Once done, you will now be able to enable/disable it whenever you desire by going to

Once the above setups are done, launch Terminal (or Command Prompt) and type in

Actually, my device name is MOTO E (2nd generation).


Note:  ” Once you fix to test on real device You must install your real device drivers on your computer. Otherwise, your real device not connected with ADB devices.

Ex: My real device name is Motorola , So I need to install Motorola drivers

Emulator Testing : It is a virtual device but not the real phone but software which gives same functionality as the real phone (except few functionality like the camera). So we need to create the emulator for testing the apps.

Creation of Emulator: Before going to create Emulator , We need to add some properties to the SDK Manager

Open the SDK manager , Follow the below steps.

1. You have to mark below contents

  • Tools
  • Android version, which version you want
  • Extras

And install those packages


5.1 After installation of all packages go through this path

5.2 Click on AVD Manager


5.3 We need to Create Emulator( means Virtual device) tap upon create


5.4 Give the properties of your virtual device










5.5 Start your emulator and launch



5.6  Getting error while launching AVD with AMD processor

Solution: Make sure you have installed HAXM installer on your SDK Manager.


5.7 Finally getting the Emulator


5.8 Now verify your emulator is working or not through command prompt

Use ” adb devices ” to verify emulator and output is like below


Note: Using Genymotion emulator instead of AVD emulator

Since the performance of Android AVD emulator is quite low, especially not using the “host GPU”, so it’s better for us to use Genymotion, which is a faster Android emulator, based on VirtualBox.

Please follow the link for installation of VirtualBox and Genymotion.

Step 6: Download and install Appium

6.1 Unzip the folder and Install


6.2 Run the appium server


You have successfully setup the appium server with windows 7.

Thank you for reading this article!