Prerequisites:
Following
are the prerequisites for mobile automation using Appium.
- JDK Installation
- Android SDK Installation
- Appium Installation
1.
JDK Installation:
- Download java JDK from here
- Install JDK
- Set the environmental variable JAVA_HOME to JDK home directory like below
Include %JAVA_HOME%\bin in PATH
variable.
2.
ANDROID SDK Installation:
- Download latest bundle of adt-bundle here
- Extract the file to a directory
- Set the ANDROID_HOME environment variable to sdk
- Example : Copy the directory path upto sdk folder and go to Environment variables and set
Android_HOME
= D:/DurgaPrasad/automation/adt-bundlexxx/sdk;
Include %ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\platforms; in PATH
variable.
3.
Appium Installation:
Appium
can be installed in two ways:
- Using node.js
- Using appium.exe
Using
Appium.exe
- Download latest version of appium from http://appium.io/
- After downloading unzip the file and navigate to appium folder
- Run the Appium.exe file, you could see the following screen
- To start the server click on start button like below
Using
node.js:
- Go to download page here
- Download the Windows Installer (.msi)
- To run the installer, click Run.
- After installing the node.js open the cmd prompt and use following commands
-->
npm install -g appium # to install the appium
-->
npm install wd # get appium clien
Start
the server using following commands: appium &(or) --avd
emulator_name