Installing appium server
Installing XCode
If you haven’t already installed XCode, go to the Apple App Store on your Mac or click here.
Command Line Tools
You’ll also need to install Command Line Tools (CLT) for Xcode. You can do this by running xcode-select --install
from the terminal.
You can also get it from Apple’s download page.
Once the installation is complete, verify that the CLT location has been set in Xcode.
- Open Xcode and go
Preferences
underXcode
in the menu bar (or hitCMD + ,
) - Click on the
Location
tab - Select the location of of your Command Line Tools
Homebrew
Homebrew is a package manager for OSx. We’ll need it to install some of the packages. If you haven’t already, you can install it by running this from the terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew -v
from the terminalCarthage
Carthage is a dependency manager for iOS development. It is required for iOS testing. Install it by running this from the terminal:
brew install carthage
Installing JDK
Download the proper installation file from Oracle (The LTS version is recommended i.e. Java SE 11.0.5(LTS)) for your operating system
Run the installer, then wait until the installation is complete
Set JAVA_HOME in your system’s environmental variables to the JDK installation path.
- OSx: Open ~/.bash_profile with a text editor and add the line
export JAVA_HOME=$(/usr/libexec/java_home
. Save the file and runsource ~/.bash_profile
from the terminal
- OSx: Open ~/.bash_profile with a text editor and add the line
Installing Appium
Appium Desktop
For test development, we need to install Appium Desktop, a full package that contains:
- Appium Server, the software driving the test automation
- A GUI to start Appium Server and inspect mobile applications.
Click here to download and install the package for OSx. Typically it’s the one with .dmg
extension
Now open Appium Desktop and click the Edit Configurations button.
- JAVA_HOME: Set this to the location of your java installation
- The standard location for OSx is
/Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home
- The standard location for OSx is
Save the settings and restart Appium Desktop.
Appium Command line
- Install Appium
npm install -g appium
appium
from the terminal. If you are using Appium Desktop ignore this.- Install Appium-doctor
npm install -g appium-doctor
To verify that everything is installed properly run appium-doctor
from the terminal.