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/
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)
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
Modify the path
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.