Configuring Appium on Mac.

Requirements: What You Will Need

1. Xcode (latest version) with all downloaded simulators and command line tools
2. Appium (latest version)
3. Android Studio along with Android SDK and Platform Tools
4. Eclipse IDE
5. Jar files required to set up the Appium capabilities.

Now let’s dig deeper:

Commands to install Appium on Mac:

Open Terminal:

First Command:  This will install home-brew. Basically Homebrew is an open-source software package management system that simplifies the installation of software on Apple’s OS X operating system.

——      ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

This will prompt for the password..Enter the password to continue.

Second Command: This will install node JS as appium will use Node js as the medium of communication between your java code and appium server

——       brew install node

Third Command: Install Appium using NPM (Node package Manager)

——       npm install -g appium

Fourth Command: Install Appium Client on the machine

——       npm install wd

To install Appium client along with GUI:

  1. Goto appium.io
  2. Download & Install the appium client.

Fifth Command: This will give permission for appium to use all the iOS simulators and the iOS devices connected to the machine

npm install -g authorize-ios

Sixth Command: This command will provide the root access to the appium client

sudo authorize-ios

Seventh Command: Verify the installation of appium on your device.

appium &

You will be displayed with the following message:

Welcome to Appium v1.5.3

[Appium] Appium REST http interface listener started on 0.0.0.0:4723

Eight Command: ideviceinstaller is a tool to interact with the installation_proxy of an iOS device allowing to install, upgrade, uninstall, archive, restore and enumerate installed or archived apps.

brew install –HEAD ideviceinstaller

 

Set up Java & Android_home path:

Open terminal…

use the following command

nano ~/.bash_profile

Enter the following commands….

export ANDROID_HOME=/Users/krishna/Library/Android/sdk

export PATH=$ANDROID_HOME/platform-tools:$PATH:/usr/local/bin

export PATH=$ANDROID_HOME/tools:$PATH

export JAVA_HOME=$(/usr/libexec/java_home)

export NODE_PATH=/usr/local/lib/node_mod

Save the file.

Use the following command to verify

echo $JAVA_HOME

 

To verify the installation use Appium Doctor:

npm install appium-doctor -g

appium-doctor

 

Once all the requirements related to Appium, You are ready to start automating your project.

Leave a Reply

Your email address will not be published. Required fields are marked *