Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}
Refcard #239

Getting Started With Appium

Mobile App Automation Made Awesome

In this Refcard you will learn everything you need to know about getting started with this open-source tool, from installing the Appium server to running your first tests. Download this Refcard now to see why Appium is "Mobile App Automation Made Awesome."

6,146

Brought to you by

Sauce Labs
Free .PDF for easy Reference

Written by

Wim Selles Sr. Solutions Architect, Sauce Labs
Dave Haeffner Author, Elemental Selenium
Refcard #239

Getting Started With Appium

Mobile App Automation Made Awesome

In this Refcard you will learn everything you need to know about getting started with this open-source tool, from installing the Appium server to running your first tests. Download this Refcard now to see why Appium is "Mobile App Automation Made Awesome."

6,146
Free .PDF for easy Reference

Written by

Wim Selles Sr. Solutions Architect, Sauce Labs
Dave Haeffner Author, Elemental Selenium

Brought to you by

Sauce Labs
Table of Contents

What is Appium?

Section 1

What is Appium?

Appium is a free and open-source mobile automation framework used for native, hybrid, and mobile web apps. It works on iOS, Android, Mac, and Windows apps using the WebDriver protocol. WebDriver (the API to automate browsers, maintained by the Selenium project) is currently going through a W3C (World Wide Web Consortium) specification.

Getting Started

In order to get up and running on your local machine, you need to download an Appium server and client bindings for your preferred programming language. There are Appium language bindings for multiple programming languages. The officially supported ones (in alphabetical order) are:

  • C# (.NET)

  • Java

  • JavaScript (Node.js)

  • PHP

  • Python

  • Ruby

Before we dive into installing all of the Appium dependencies we are first going to look into the the iOS and Android dependencies.

Platform Dependencies (iOS)

For testing on iOS, you need to have a Mac and  you need to install:

  • Xcode

  • Xcode Command Line Tools Package. The Command Line Tools Package can be installed with the  xcode-select --install command in your terminal once Xcode has been installed.

Basic Setup

(We recommend the use of Homebrew for installing system dependencies)

Ensure that you have Appium's general dependencies (e.g., Node & NPM) installed and configured.

Install the Carthage dependency manager: brew install carthage

If you don't need to automate real devices, you're done! To automate an app on the simulator, the app capability should be set to an absolute path or url pointing to your .app or .app.zip file, built for the sim.

This is a preview of the Getting Started With Appium Refcard. For the full Refcard, please download the .pdf above. 

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}