iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs

  • View

  • Download

Embed Size (px)

Text of iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs

iOS Automation with Cucumber Appium and Saucelabs

Shashikant JagtapTwitter:@Shashikant86



Appium Introduction

Installation & Setup

Setting up Mobile App for Appium

Appium Inspector

Setting Cucumber Project



Open Source test automation Framework

Hybrid and Native Apps

Uses WebDriver JSON Protocol

How Appium Works?

Selenium Server for iOS

Handles WebDriver sessions

Logs every action on the Mobile App

Uses Apple Instruments for iOS

Use WebDriver Capabilities

iOS Requirements

Mac OSX 10.7 +

Xcode 4.5 + Command Line Tools


NodeJS and npm

Ruby, RVM and Git

Installing Appium

NodeJS$ brew install node$ npm install -g appium$ npm install wd

Appium AppDownload Appium App

Running Appium Server

Start Appium$ ./node_modules/.bin/appium


OR Start Appium with App

Appium 1.0

New Client Libraries for all languages

New WebDriver Desired Capabilities

Full XML and Xpath Support

New Locator Strategy

Brand New Appium OSX App

Setting Mobile App for Appium

Locally$ cd your_awesome_app$ xcodebuild -sdk iphonesimulator6.0

APP_PATH$ cd build/Release-iphonesimulator/

Setup APP for Saucelabs

Setup$ xcodebuild -sdk iphonesimulator6.0 TARGETED_DEVICE_FAMILY=1

Zip Your APP$ zip -r /build/Release-iphonesimulator/

Upload with Sauce REST

Upload Zip on Saucelabs

REST API$ curl -u USERNAME:API_KEY -X POST "" -H "Content-Type: application/octet-stream" --data-binary @/path/to//build/Release-iphonesimulator/

Appium Inspector

Inspects Elements on the Mobile App

Controls user actions like tap, swipe, scroll, shake etc etc

Generate Test Script in WebDriver Supported Languages

Record and Playback

Appium Inspector

Inspect Elements on Mobile App

Record all actions on your App

Record actions like tap, swipe and shake and support major programming languages

Support Xpath


BDD Tool

Write Feature File

Create config file

Implement Step Definition

Make Scenarios Pass

Be Happy


Cross Browser, Cross-Platform and Cross-Device Cloud Testing Frameworks

Supports Almost all available browsers, platforms and Device combinations

Free Account will give you USERNAME and API KEY

Feature File





Live Demo Time

$ git clone$ cd cucumber-appium$ rvm use 1.9.3$ bundle install $ bundle exec cucumber features/plain_note.feature

Live Demo Blogs

Source Code: Shashikant86/cucumber-appium

MY Demo blog Saucelabs

Demo [Personal blog]


Have fun with New Appium 1.0 !!

Click to edit the title text format

Click to edit the title text format

Click to edit the title text format