Step by step guide for instaling Appium for Windows
- Download Android SDK
- Android Setup guide: http://spring.io/guides/gs/android/
- Android-Sdk must be installed and ANDROID_HOME set
- VARIABLE NAME: ANDROID_HOME
- VARIABLE VALUE: C:\android_sdk\adt-bundle-windows-x86_64-20131030\sdk
- Open CMD and go to the location: C:\android_sdk\adt-bundle-windows-x86_64-20131030\sdk
- Type: android
- Inside AVD Manager Select the Tools checkbox.
- Select the checkbox for the latest Android SDK, Android 4.2.2 (API Level 17) as of this writing.
- From the Extras folder, select the checkbox for the Android Support Library.
- Click the Install packages… button to complete the download and installation.
- Create AVD Emulators
- android create avd –name Default –target “android-19” –abi armeabi-v7a
- –name Name of the new AVD.
- –target Target ID of the new AVD.
- –abi The CPU/ABI to use for the AVD.
- android list targets (displays a list of available targets)
- android list avd (Shows the list of virtual devices created)
- emulator -avd Default (Verify that emulator is working fine)
Step-by-Step Guide for Installing Appium on OS X:
Installed OSX 10.9.2 (Mavericks)
Installed XCode Version 5.1 (5B130a)
Step: 1 Install Node.js
Install Homebrew v.0.9.5 (in order to do a brew install in next step)
Install Node.js and npm with Homebrew
First, install Homebrew. Open the terminal and type:
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Then, run brew update to ensure your Homebrew is up to date.
As a safe measure, run brew doctor to make sure your system is ready to brew. Follow any recommendations from brew doctor.
Next, add the Homebrew location to your $PATH and source your bash or zsh profile file after adding/saving this:
Next, install Node (npm will be installed with node):
brew install node
Step 2: Install APPIUM
run ‘npm install -g appium’
run ‘npm install wd’ (you might need to SUDO)
Now run ‘authorize_ios’
You might get this error: “error stderr maxbugger exceeded”
running again as ‘sudo authorize_ios’ but now seeing
— error: Appium will not function correctly if used under sudo. Please rerun as a non-root user. If you had to install Appium using `sudo npm install -g appium`, the solution is to reinstall Node using a method (Homebrew, for example) that doesn’t require sudo to install global npm packages.
since authorize_ios does not work with sudo you needed to manually run chown on the Applications dir. Just ran this:
sudo chown -R yourusername>:staff Applications
Once everything is done just type: ‘appium &’ in the terminal and it will start the Appium and you should be ready to use it.
Appium On Windows