Appium Set Up Complete Guide
1. Xcode
Installation
1 Install Xcode or Upgrade to 9.X
2 Goto the Mac Appstore and search for Xcode and
click the Get button.
3 After installation, install the Commandline
Tools.
2. Java Installation
Installing
Java
1 – Go to this link

2 - Download jdk for macOS after clicking on the “Accept
License Agreement”
3 - Open
Downloads folder and double click the DMG file

4 – Double click the JDK 8 install icon

5 - Click the Continue button.

6 - Click the Install button.

7 - Enter your password to install

8 – Wait for installation to complete and then click on
Continue

9 - Click on Close

10 – Click on Keep if you want to “Keep” the installer or
else click on “Move to Trash”

Setting
environment variables for Java
11 – Open new terminal and run command “vim .bash_profile”
to open “.bash_profile” in vim editor

12 – Press “I” key to enter in INSERT mode of vim editor
13 – Enter text
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/bin:$PATH

14 – Press “Escape” key to exit INSERT mode

15 - Type “:wq” for
write and quite vim editor

15 – Now reload “.bash_profile” using “source .bash_profile”
and run command “echo $JAVA_HOME”

17 – To check version of installed java run command “java
–version”

Installing
maven
1 - Go to this link

2 - Download apache-maven-latest_version-bin.tar.gz file
3 - Open
Downloads folder and double click the downloaded file

4 – Copy the path/location of apache-maven-version folder

Setting
environment variables for maven
5 – Open new Terminal and type “vim .bash_profile” and press
key “i” to open “.bash_profile” in INSERT mode in vim editor

6 – Enter text
export M2_HOME=/Users/rinkish/Softwares/Maven/apache-maven-3.5.2
(enter path of location of apache-maven folder on your system)
export PATH=$PATH:$M2_HOME/bin

7 – Press “ESC” key to exit ‘INSERT’ mode and type “:wq” for
write and quit vim editor

8 – Open new terminal and run command “mvn –version” to get
the version of installed maven

Installing
Eclipse
1 – Go to this link
Click on “Download Packages”

2 – Click on “Eclipse IDE for JAVA EE Developers”

3 – Click on “Mac_OS_X (Cocoa) 64-bit”

4 – Click on DMG file

5 - Your download will start

6 - Open Downloads folder and double click the DMG file

7 – Drag Eclipse icon to “Applications”

Installing
Homebrew
1 – Open new terminal and paste the following command and
hit ENTER
ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"

2 – Press ENTER/RETURN to continue

3 – It will ask for Password to proceed with the
installation. Enter your password to continue installation

4 – You’ll get “Installation successful” message
5 – Run command “brew doctor” to check if your system is
ready to brew

Installing
Android Studio
1 – Go to this link
And click on “Download Android Studio”

2 – Agree to the terms and conditions and click on “Download
Android Studio for mac”

3 - Open Downloads folder and double click the DMG file

4 – Wait for installation to complete and now you’ll see “Android
Studio” icon in your Applications

5 – Select “Do not import settings” and then click on “OK”

6 – Wait for Downloading to complete

7 – Click on next

8 – Select “Standard” and Click on “Next”

9 – Again click on “Next”

10 – Now click on “Finish”

11 – Wait for downloading to complete and then click on “Next”

12 – Enter your system password to complete the installation

13 – You will get “Silent Installation Pass” message after
completion and then click on “finish”

14 – Open “Android Studio” and click on “Configure”

15 – Select “SDK Manager” from the drop down

16 – Copy the Android SDK Location path and select the
android versions you want to download and then click on “OK”

17 – Click on “OK” on confirmation pop-up

18 – Accept the License Agreement and then click on “Next”

19 – Wait for downloading to complete and after completion
click on “Finish”

20 – Open new terminal and go to the path of SDK (same path
we copied in step 16th)

21 – Run command “ls”. You will see folders “tools” and “platform-tools”

Setting
environment variables for ANDROID
22 – Open “.bash_profile” file in vim editor

23 – Press key “i” to enter into “INSERT” mode of vim editor
and enter the following text
export ANDROID_HOME=/Users/rinkish/Library/Android/sdk (Enter
path of your SDK)
export
PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Installing
ADT plugin in Eclipse
1
Open Eclipse and then go to Help -> Install
new software.
2
Enter the following path (https://dl-ssl.google.com/android/eclipse/
) in the ‘work with’ field and press ‘add’.
3
Select the options available (Developer tools)
and click on next.
Setting
Android SDK path in eclipse
1.
Open Eclipse and go to Preferences
2. Select “Android” and give path of SDK in “SDK
Location”
3. Click on “Apply and Close”
Setting
Android SDK Manger and Android Virtual Device shortcuts in Eclipse
1.
Open Eclipse and then go to Window ->>Perspective
->>Customize Perspective
2.
Click on tab “Action Set Availability” and
select “Android SDK and AVD Manager”
3.
Click on tab “Tool bar Visibility” and select “Android
SDK and AVD Manager”
7. Appium Installation
Installing
Appium and other dependencies
To install Appium and other dependencies in as single go, we
have created a script “Appium_Installation.sh”
1. Download this “Appium_Installation.sh” file from this
link
2. Open new terminal and go to the location of “Appium_Installation.sh”
3. Give permissions to this file using command “chmod 777
Appium_Installation.sh
4. Run this file using command “sh Appium_Installation.sh”
5. Few dependencies are installed using “sudo” so it will
prompt for password few times.

6. This script will open “WebDriverAgent” folder
7. Connect the iPhone device from the Mac Machine
8. Double click on the WebDriverAgent.xcodeproj

9 – Select “WebDriverAgent” project

10 – Select the connected Device

11 – Check “Automatically manage signing” and click on “Enable
Automatic”

12 – Add Developer Account and Download Certificates

13 – Select Deployment target (OS version of device
connected)

14 – Now Build and run the current scheme

15 – You should get the “Build Succeeded” message

16 – Now Change target to “WebDriverAgentRunner”, select
developer account & Build and run the current scheme

17 - Now Change target to “IntegrationApp”, select
developer account & Build and run the current scheme
y

18 – Now change the Active scheme to “WebDriverAgentRunner”,
select developer account & Build and run the current scheme

19 – Now change the Active scheme to “IntegrationApp”,
select developer account & Build and run the current scheme

20 – After getting “Build Succeeded” message in step 19,
check the connected device you will see “IntegrationApp” on your connected
Device

21 – Now go back to the terminal where we run the “Appium_Installation.sh”
file and hit ENTER

22 – Now you’ll see “WebDriverAgent” on your connected
device

Comments
Post a Comment