discovering appium - a journey for beginners

18
MAY 10, 2017 DISCOVERING APPIUM A JOURNEY FOR BEGINNERS ASAF SAAR – DIRECTOR PRODUCT MANAGEMENT

Upload: asaf-saar

Post on 28-Jan-2018

96 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Discovering appium - A journey for beginners

MAY 10, 2017

DISCOVERING APPIUMA JOURNEY FOR BEGINNERSA S A F S A A R – D I R E C T O R P R O D U C T M A N A G E M E N T

Page 2: Discovering appium - A journey for beginners

A G E N D A

Page 3: Discovering appium - A journey for beginners

AGENDA

MAY 10, 2017 © Sauce Labs, Inc. 3

• Intro

• Appium Overview

• Why Appium

• Appium Desktop

• Appium Challenges

• Appium Alternatives

• Sauce Labs Overview

• Sauce Labs and Appium

Page 4: Discovering appium - A journey for beginners

ABOUT ME

• Asaf Saar, Director of Product Management at Sauce Labs

• 20 years of professional experience in software engineering

• Prior to Sauce: Chief Product Owner at Perfecto Mobile, Founder and

CEO of TenKod, SAP APO of Software Engineering, and more…

• Agile Software Engineering trainer, coach and mentor

• Married to Merav and father of three

• Astronomy, fast cars and vintage computers are my hobbies

[email protected]

http://il.linkedin.com/in/asafsaar

MAY 10, 2017 © Sauce Labs, Inc. 4

Page 5: Discovering appium - A journey for beginners

APPIUM

Appium is an open-source tool for

automating native, web, and hybrid

applications on mobile platforms

MAY 11, 2017 © Sauce Labs, Inc. 5

http://appium.io/slate/en/master

Page 6: Discovering appium - A journey for beginners

WHY APPIUM

• Runs on iOS, Android and Windows 10 PC as well…

• Automates native, web and hybrid apps

• Instrumentation free

• Uses standard automation libraries of iOS, Android and Windows

• WebDriver based, supporting any compatible language

• Use with your favorite testing, build and CI/CD frameworks

• Drives simulators, emulators and real devices

• Open Source, part of the JS Foundation.

MAY 10, 2017 © Sauce Labs, Inc. 6

Page 7: Discovering appium - A journey for beginners

APPIUM DESKTOP

• An open source app for Mac, Windows, and Linux

• The power of the Appium automation server in a flexible UI

• An Inspector that you can use to look at your app's elements

MAY 10, 2017 © Sauce Labs, Inc. 7

Page 8: Discovering appium - A journey for beginners

APPIUM CHALLENGES

• Setup is challenging

• Development (OOP) knowledge is a must

• Framework only. No test management, no reporting

• Appium Desktop

• No recording capabilities / code generation

• No smart locators, returns Full XPath

• Somewhat slow on cloud

MAY 10, 2017 © Sauce Labs, Inc. 8

Page 9: Discovering appium - A journey for beginners

APPIUM CHALLENGES, IOS SPECIFIC

• iOS on localhost requires a Mac

• System level control using XCUITest

• Parallel testing requires Mac machine per device

• Can’t automate iOS Keyboard (only send keys)

• Safari browser only

• Setup of real iOS Devices is a pain

MAY 10, 2017 © Sauce Labs, Inc. 9

Page 10: Discovering appium - A journey for beginners

APPIUM ALTERNATIVES

Open Source Commercial

Espresso HPE UFT / LeanFT – Mobile Center

Robotium SmartBear TestComplete

XCUITest Ranorex Studio

Calabash ExperiTest

Sikuli Perfecto Mobile

EggPlant

SIGOS App Experience (Keynote DA)

Borland Silk Mobile

MAY 10, 2017 © Sauce Labs, Inc. 10

Page 11: Discovering appium - A journey for beginners

Mobile App TestingWeb Testing

The industry’s only cloud-based testing platform for both web and mobile applications that spans desktops,

simulators, emulators and real devices

Desktops Emulators & Simulators Real Devices11

Page 12: Discovering appium - A journey for beginners

CURRENT MOBILE OFFERING

Manual Testing

Automated Testing

Emulators & Simulators

Public Cloud Private Cloud

Real Devices

Public Cloud

Mobile Testing

SECURITY & PRIVACY

12

Page 13: Discovering appium - A journey for beginners

APPIUM AND SAUCE LABS

● Appium is a first-class citizen on Sauce Labs’ EMU/SIM and RDC

● Compatibility with Appium means

● No vendor lock-in; the freedom to run the same tests in-house or on our cloud

● Support of a broad ecosystem of tools and resources

● Appium scripts can be executed against emulators/simulators and real devices, in the same project, with basic test setup parameterization

13

Page 14: Discovering appium - A journey for beginners

RUNNING APPIUM ON SAUCE LABS

Executing Automated Tests on Sauce Labs RDC requires the following steps

• Upload app to TestObject Storage

• Update scripts to use the TestObject authentication key

• Update endpoints in test scripts

• Update desired capabilities in test scripts

14

Page 15: Discovering appium - A journey for beginners

RUNNING APPIUM ON SAUCE LABS

15

https://github.com/saucelabs-rdc-sample-frameworks/Java-TestNG-Appium-Android-Watcher

Page 16: Discovering appium - A journey for beginners

D E M O

Page 17: Discovering appium - A journey for beginners

Q U E S T I O N S ?

Page 18: Discovering appium - A journey for beginners

LET’S DO THIS.