Appium installation in Windows & Linux machines


Basically I’m a UNIX lover. I’m using linux ubuntu as operating system. Anyway, this article helps you to install Appium in both Linux & Windows operating system. All these articles talks about Android app Automation.

The following are the system requirements for Appium on Android:
*Java (updated version)
*Android SDK API (API 17 or later)
*Eclipse (latest version) with ADT plugin
*Android Virtual Device (AVD) or real device
*Appium client Jar, Gson Jar

Download & Install java from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and set environment variables. If you’re not sure, please google it for info.

Download Android SDK from http://developer.android.com/sdk/index.html for your operating system.

Get Eclipse from https://eclipse.org/downloads/ and Install ADT plugin in Eclipse.
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter “ADT Plugin” for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/
Click OK.
Once it’s done, then you should see AVD icon on the toolbar
Now set Android SDK path in Eclipse preferences.

Download Appium client Jar, Gson Jar files

Appium Java client (http://search.maven.org/#search|ga|1|appium%20java%20client)
Gson (http://mvnrepository.com/artifact/com.google.code.gson)
Install Appium for Windows
You can download Appium for Windows directly from Appium’s official website
(http://appium.io/), We have two ways to start the server, either using the Appium GUI or Terminal. We will this in a while.

Install Appium for linux
Just type few commands in Terminal. We need to get nodejs
sudo apt-get update
sudo apt-get install nodejs
npm install -g grunt-cli
npm install -g appium

To start Appium just type ‘appium‘ in Terminal. You should see a session has been started

If the above commands didn’t work for you then try below commands to install Appium using linux brew

ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)”
set path for brew
gedit .bashrc
Modify the path
export PATH=”$HOME/.linuxbrew/bin:$PATH”
export MANPATH=”$HOME/.linuxbrew/share/man:$MANPATH”
export INFOPATH=”$HOME/.linuxbrew/share/info:$INFOPATH”

Install node
brew install node
npm install -g appium

To start Appium just type ‘appium’ in Terminal. You should see a session has been started.

Now, we’re done with installations. If you face any difficulties, just google it. You know what, there’re plenty of websites which can help you in installation.

If you already familiar with Selenium concepts then learning Appium wouldn’t be so hard. Few of my articles will be based on TestNG with Appium. So, I would suggest you to get familiar with TestNG framework. I am using existing IDE (Eclipse) where I can automate both Mobile apps and web apps.

Advertisements

One thought on “Appium installation in Windows & Linux machines

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s