Tags

, , , ,

Steps to install Appium on MAC to be used for Android devices:

  • Start with creating your bash_profile, if you don’t have one!
    • Run this on command line: touch .bash_profile
    • Now run this to set path for executables:
      echo ‘export PATH=/usr/local/bin:$PATH’ >>~/.bash_profile
  • Check if you have maven installed
    • Run this: mvn –version
    • If you don’t have maven installed, install it by running: brew install maven
    • Set PATH variable for maven by running this: echo ‘export PATH=/usr/share/maven/bin:$PATH’ >>~/.bash_profile
  • Now, install Node
    • Run this: brew install node
    • Check if node is installed: node –version . This should return your node version.
    • Check if npm is installed: npm –version. this should return your npm version
    • Run make install
  • Install Android-sdk
    • Run this: brew install android-sdk
    • Set ANDROID Path in bash_profile. Run this on command line: echo ‘export ANDROID_HOME=/usr/local/opt/android-sdk’ >>~/.bash_profile
    • Install android-tools using : android update sdk –no-ui –filter ‘platform-tools’
  • Install Appium now
    • npm install -g appium
    • npm install wd
    • Run this to start appium server : Appium &
  • Install appium-doctor to run diagnostics for appium and dependencies
    • npm install -g appium-doctor
  • To check if it’s all good for android on your MAC
    • Run this: appium-doctor –android

This  will check dependencies. If you see everything checked green as below, you are good to go!!

 

Screen Shot 2016-05-04 at 3.44.19 PM

Please note that I also installed XCode.
Happy Automating!!

Advertisements