Prerequisites:
Following are the prerequisites for mobile automation using Appium.
  • JDK Installation
  • Android SDK Installation
  • Appium Installation
      • JDK Installation:
        • Download java JDK from here
        • Install JDK
      • ANDROID SDK Installation:
        • Download latest bundle of adt-bundle here 
        • Extract the file to a directory
        • Once User extracts the adt-bundle-mac-x86_xxxx.zip, inside user can see the two folders 1.eclipse folder and 2.sdk folder
        • Inside sdk folder, user will see two folders like tools and platform-tools
    Setup all the environment variables -

    Step 1:
    Run this command in Terminal:
    open ~/.bash_profile

    Note : By running the above command a bash_profile file will open.

    Step 2:
    Add paths like below
    #Set Java Home Environment
    export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/Home

    #Export Android Home till sdk

    export ANDROID_HOME=/Users/<<name>>/Library/Android/sdk
    export PATH=${JAVA_HOME}/bin
    export PATH=$ANDROID_HOME/build-tools:$PATH
    export PATH=$ANDROID_HOME/tools:$PATH
    export PATH=$ANDROID_HOME/platform-tools:$PATH
    set PATH=$PATH:${JAVA_HOME}/bin


    Step 3:
    Save the bash_profile file and close the all existing terminals

    Step 4:
    Now open new terminal and type “adb devices” by omit double quotes and click enter.

    User can see the text like of "List of devices attached" in terminal as shown below screenshot






    Step 5:

    Once you run the above command you will see the “list of devices attached” text in terminal..it mean your android setup is successful

    3. Appium.dmg Installation:

    Step 1: Download latest Appium.dmg file from here 

    Step 2:
    Now install appium.dmg file and then click on appium.app file
    You can see the screen like below


    Step 3:
    Now click on Launch button, then the appium server will start( shown in below screenshot)

    Now Appium and Android Setup is Successfully Completed.... :)





    Categories: