Skip to content

Instantly share code, notes, and snippets.

@TuHuynhVan
Forked from maggiesavovska/appiummac.md
Created June 2, 2017 11:16
Show Gist options
  • Save TuHuynhVan/8f1cd45fccc9586de467cfc049b5e6bd to your computer and use it in GitHub Desktop.
Save TuHuynhVan/8f1cd45fccc9586de467cfc049b5e6bd to your computer and use it in GitHub Desktop.
Setting Up Appium on Mac
  1. Set up for Appium:

  2. Set up for Android:

    • Reference:

    • Download, install and launch Android Studio

    • click on "configure" ==> "SDK Manager" ==> "Android SDK"

    • Make sure following are installed (under "SDK Tools"):

      • Android SDK Tools
      • Android SDK Platform-tools"
      • Android SDK Build-tools (highest version)
      • Android Support Repository/Library
      • Google Repository
      • Intex x86 Emulator Accelerator (HAXM Installer)
    • Under the SDK platforms section make sure the correct platform version is installed (should correspond to the android settings in appium)

    • Note the path to SDK from this sdk manager screen.

    • Add ANDROID_HOME environment variable with path to sdk and add that to your path

    • nano ~/.bash_profile

    • export ANDROID_HOME={YOUR_PATH}

    • Add to your current path variable: export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

    • ctrl + o, enter, ctrl + x

    • source ~/.bash_profile

    • type ```adb devices`` in the command line to check if ANDROID_HOME environment variable set correctly NOTE: If "adb" command is not found then you need to check if the path to Android sdk platform-tools is in your path.

  3. Connect iPhone:

  4. Use correct desired capabilities: https://appium.io/slate/en/master/?ruby#appium-server-capabilities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment