One of my favorite automation testing tool, this tool helps us to automate mobile application such as native apps, web apps, and hybrid apps. I’d biggest challenge when started installing the appium package on a mac machine, this installation steps may be changed whenever the OS version or dependencies changes. Please feel free ping me through FB messenger, I can happy to help you or learn from new challenges [my online 8 pm to 10 pM Eastern time]
Mac Machine
Presteps :
- Install the XCode for iOS Apps Automation
- Install the Android Studio for Android Apps Automation
-
Install Homebrew.
When , ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Then run brew update to ensure your Homebrew is up to date.
brew doctor
As a safe measure, run brew doctor to make sure your system is ready to brew. Follow any recommendations from brew doctor.
- Install Node.js
-
brew install node
- Appium Installation :
run npm install -g appium
- Appium -version command will help to check your version.
- npm install appium-xcuitest-driver
- npm install wd
- if you want to start the Appium use this terminal appium
touch ~/.bash_profile;
SP:Users SP$ open ~/.bash_profile
- export ANDROID_HOME=/Users/***USER***/Library/Android/sdk
- export PATH=$ANDROID_HOME/platform-tools:$PATH
- export PATH=$ANDROID_HOME/tools:$PATH
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home
- export PATH=$JAVA_HOME/bin:$PATH
- export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.1/bin:$PATH
- export PATH=$PATH:$M2
- export M2=$M2_HOME/bin
- export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
<!– https://mvnrepository.com/artifact/io.appium/java-client –>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>4.1.2</version> **// Always check the stable version
</dependency>
For Windows machine :
- Download the latest node and NPM
- npm & node.js should be setup on the path environment variable setup.
- Run the command npm install -g appium
- Check the version appium -v
- To start Appium, you can now simply run
appium
from the prompt. - Follow the directions below for setup for either Android or Windows app testing.
- Run a test from any Appium client.
Source reference:
http://appium.io/downloads.html
https://discuss.appium.io/
www.appium.io
https://gitter.im/appium/appium
https://github.com/appium/