Appium setup
Mac:
Download and install the latest Java from http://www.oracle.com/technetwork/java/javase/downloads/index.html Download and install the latest Android SDK from http://developer.android.com/sdk/index.html Set the path to ANDROID_HOME and JAVA_HOME in the .bash profile Set the path to the "Tools-tools and tools" folder in the .bash profile Set ruby
Install brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
Set path for brew from .bash profile
export PATH="$HOME/.linuxbrew/bin:$PATH" export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH" export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
Install node: Paste the following commands one by one on the terminal and press enter
brew update brew install node brew link node
Install appium
npm install -g appium npm install wd
To launch appium: paste the command below into the terminal and press enter
appium
Install the Appium python client: Download the source code https://github.com/appium/python-client Extract it, go to the folder containing the Python client from the terminal and install: cd python-client
python setup.py install
IDE Used: Pycharm
Linux:
Download and install the latest Java from http://www.oracle.com/technetwork/java/javase/downloads/index.html Download and install the latest Android SDK from http://developer.android.com/sdk/index.html Configure the path to ANDROID_HOME and JAVA_HOME in the .bashrc profile Configure the path to the Tools-Tools and Tools folder in the .bashrc profile gedit.bashrc command open the bash profile and specify the path Install ruby ββInstall linux brew ruby ββ-e "$ (curl -fsSL https : //raw.githubusercontent.com/Homebrew/linuxbrew/go/install ) "
Steps for running appium on an ubuntu computer:
Install ruby: paste the following command on the terminal and press Enter
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
Install linux brew: Paste the command below into the terminal and press Enter. ruby -e "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install )"
set the path for brew
Type: gedit.bashrc in the terminal and paste the copy into the .bashrc file
export PATH="$HOME/.linuxbrew/bin:$PATH" export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH" export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
Install node: Paste the following commands one by one on the terminal and press enter
brew update brew install node brew link node
Install appium
npm install -g appium npm install wd
To launch appium: paste the command below into the terminal and press enter
appium
Install the Appium python client: Download the source code https://github.com/appium/python-client Extract it, go to the folder containing the Python client from the terminal and install: cd python-client
python setup.py install
Used IDE: Spyder / Pycharm You can get spyder by running the sudo apt-get install Spyder Windows command:
Download and install python 2.7.9 from https://www.python.org/downloads/ Download and install the latest Java from http://www.oracle.com/technetwork/java/javase/downloads/index.html Download the Android SDK from http://developer.android.com/sdk/index.html Set the environment variables JAVA_HOME for Java, Python.exe for python and ANDROID_HOME for Android sdk, as well as Android and platform tools.
IDE Used: Pycharm
Download and install the pycharm IDE from https://www.jetbrains.com/pycharm/ Installing the Appium python client: Download the source code https://github.com/appium/python-client Extract it, go to the folder containing the Python client, from the terminal and install: cd python-client
install python setup.py Start the node server using Appium gui with a Windows PC