SlideShare a Scribd company logo
Mobile WebDriver
Selendroid

Dominik Dary
Productivity & Test Engineering Europe
2013-11-21 Software Test Usergroup Hamburg
AGENDA
1. Facts about eBay
2. Selenium
3. Mobile Automation Requirements
4. Selendroid
5. Borderless Test Automation

Mobile WebDriver Selendroid

2
FACTS ABOUT EBAY
EBAY INC. FACTS
•Founded in 1995

•Based in San Jose, California
•27770 Employees worldwide

Mobile WebDriver Selendroid

4
MOBILE FACTS

Mobile Facts

Mobile Fun Facts

162,000,000 downloads
of eBay Inc’s apps

Every 15 seconds, a pair of ladies shoes is purchased on
eBay Mobile in the UK.

Mobile transaction volume
2012: 13 billion USD – overall increase of 120 % from 2011!
2013: expectation is to transact 20 billion USD

4.2 million items
are listed with using mobile apps every week

500 USD
mobile transaction volume every second

Every week, more than 11,000 cars and 690,000 car parts
are sold through eBay’s mobile apps.

Source: http://www.ebayinc.com/system/download_links/eBay_MobileMomentum_Facts_052913_0.pdf?download=1

Mobile WebDriver Selendroid

5
WHO AM I?

Dominik Dary
Software Engineer
E-mail: ddary@ebay.com
Twitter: @dominikdary
Github: http://github.com/dominikdary

Mobile WebDriver Selendroid

6
DISCLAIMER
–Test Automation is Software Development
–End-to-End Tests are slow

–Perfect vs. Good Enough – A Context where
Time to Market Matters

Mobile WebDriver Selendroid

7
SELENIUM
WHAT IS SELENIUM?

Selenium automates browsers
that’s it

Mobile WebDriver Selendroid

9
WHAT DO WE DO WITH SELENIUM?

End to End functional test automation

Manual
Tests

Selenium space

E2
E
Test
s
Integration Tests

Unit Tests

Mobile WebDriver Selendroid

10
SELENIUM
JSON WIRE
PROTOCOL
Client
Server
Ruby
Python

Java
C#

i.e. Firefox driver

Mobile WebDriver Selendroid

11
CLIENT
•Is seen as „Selenium“ by the users
•Is called by the test framework or the CI server

•Generates HTTP requests which are received by the
server

•Supported languages:
Java, C#, Python, Ruby, PHP, JS

Mobile WebDriver Selendroid

12
SERVER
•Receives HTTP requests
•Start and teardown of browser

•Translates requests into browser specific commands
•Communicates back to the client

Mobile WebDriver Selendroid

13
SCALING USING SELENIUM GRID

Client

Client

CI

server

GRID Hub

server

server

Mobile WebDriver Selendroid

14
TECHNICAL HIGH LEVEL OVERVIEW OF
THE TEST INFRASTRUCTURE
Selenium Webdriver / Grid

Automated Test
Development
via IDE

QE
Engineer

Tests can be
started on Grid

eBay web
front end

Version Control System

Clone
Source Files
End-to-End
Tests

Start the Test Suite
via Brower

View the Test
Session and the
Result in the
Browser

+

Build via
Maven
Test type?

Agile
Team

Grid Hub

API Call

eBay API

Run test
via TestNG

Continuous Integration
System (Jenkins)
DB validation

Our virtualized test infrastructure hosted on VMware vSphere

Database

Testing Environment

Mobile WebDriver Selendroid

15
MOBILE AUTOMATION REQUIREMENTS
•Use the same approach and infrastructure as web
•Use the Load Balancer / Resource Management

Features of Selenium Grid
•Manage multiple applications / versions / languages
•No modification of mobile app
•Mobile App Runtime Inspection Support
Mobile WebDriver Selendroid

16
ANOTHER AUTOMATION TOOL?

Android

iOS

• Calabashandroid
• Robotium
• Appium
• UiAutomator
• Espresso

• Calabash-ios
• Frank
• UIAutomation
• Appium
• KeepItFunctional

Selendroid & ios-driver

Mobile WebDriver Selendroid

17
MOBILE WEBDRIVER
SELENDROID
SELENDROID
Open sourced on github:
– https://github.com/selendroid
Documentation:
• https://selendroid.io
Committers:
– eBay, Salesforce and Facebook
Getting help
– IRC : #selendroid on freenode

Mobile WebDriver Selendroid

19
SELENDROID FEATURES

•The only mobile WebDriver that supports native &
hybrid apps on Android versions (API 10 to 19)
•The app under test must not be modified
•Interacts simultaneously with multiple Android devices
•Supports hot plugging of hardware devices
•Selenium Grid Support for scaling
•Advanced Gestures are supported
•Build in Inspector to simplify test case development
•Full compatibility to the JSON Wire Protocol.
Mobile WebDriver Selendroid

20
CLIENT / SERVER ARCHITECTURE

MOBILE
BROWSER
CLIENT

JSON Wire Protocol

SERVER

selendroid
ios-driver
Mobile WebDriver Selendroid

21
TESTING NATIVE APPS
• Elements are found by locators
• Found element are used for different
interactions
• Example

Mobile WebDriver Selendroid

22
NATIVE DEMO
http://youtu.be/074BnGV0mS0

Mobile WebDriver Selendroid

23
TESTING HYBRID APPS
• Build in support for testing WebViews
with WebDriver
• Example:

Mobile WebDriver Selendroid

24
HYBRID DEMO
http://youtu.be/FGsKI6esKpw

Mobile WebDriver Selendroid

25
SELENDROID ARCHITECTURE

WebDriver
Client

HTTP

HTTP & WebDriver
JSON wire protocol

Selendroid
Standalone
Driver

Selendroid-standalone

Android SDK

USB

Mobile WebDriver Selendroid

26
SELENDROID ARCHITECTURE

Mobile WebDriver Selendroid

27
TEST: DEVICE VS. EMULATOR

•Hardware devices and Emulators can be used
•Hardware devices are much faster
•Android devices will be identified automatically
•Hot plugging of hardware devices is supported

Mobile WebDriver Selendroid

28
SELENDROID INSPECTOR
•View hierarchy
•View UI element properties
•UI screenshot with view locator
•Record the click actions
•Display the html of a web view
•XPath helper

Mobile WebDriver Selendroid

29
SELENDROID INSPECTOR IN ACTION

http://youtu.be/JKZeF3eHljo
Mobile WebDriver Selendroid

30
BORDERLESS TEST
AUTOMATION
BORDERLESS TEST AUTOMATION
•Our business is borderless  test automation needs
to be as well

•Use the same approach and infrastructure for web
and mobile

Mobile WebDriver Selendroid

32
SAME API FOR WEB AND MOBILE
A regular Web Test Case

An iPhone app test

An Android app test

Mobile WebDriver Selendroid

33
CROSS PLATFORM DEMO
Uses in one test scenario an iOS app, web page and an Android app.

Mobile WebDriver Selendroid

34
WE ARE LOOKING
FOR
CONTRIBUTORS

Mobile WebDriver Selendroid

35
Thank You!
Questions or Comments?

Dominik Dary

Fork us at Github:

Email: ddary@ebay.com
Twitter: @dominikdary

- http://selendroid.io
- http://github.com/ios-driver

Mobile WebDriver Selendroid

More Related Content

PPTX
Android Test Automation – one year later
PPTX
Mobile Test Automation at eBay
PPTX
Selendroid in Action
PPTX
Applied Testing Heuristics in the Context of eBay
PDF
Mobile test automation with Selenium, Selendroid and ios-driver
PPTX
Selendroid - Selenium for Android
PPTX
Android Automation Testing with Selendroid
PDF
Implementing Test Automation in Agile Projects
Android Test Automation – one year later
Mobile Test Automation at eBay
Selendroid in Action
Applied Testing Heuristics in the Context of eBay
Mobile test automation with Selenium, Selendroid and ios-driver
Selendroid - Selenium for Android
Android Automation Testing with Selendroid
Implementing Test Automation in Agile Projects

What's hot (20)

PPTX
Different Android Test Automation Frameworks - What Works You the Best?
PPT
PPTX
Automated Testing and Continuous Deployment for Mobile Apps with Jenkins
PDF
Getting started with appium
PDF
Top Best Practices for Successful Mobile Test Automation
PPTX
Cross Platform Appium Tests: How To
PDF
[Srijan Wednesday Webinars] Building a High Performance QA Team
PDF
[Srijan Wednesday Webinar] Mastering Mobile Test Automation with Appium
PPTX
Appium Meetup #2 - Mobile Web Automation Introduction
PPT
Android & iOS Automation Using Appium
PPTX
Automation testing on ios platform using appium
PDF
Automated UI Testing Frameworks
PPTX
Hassle-Free Continuous Integration with Real Device Testing
PPT
PPTX
Parallel Test Runs with Appium on Real Mobile Devices – Hands-on Webinar
PPT
Using Selenium to Test Native Apps (Wait, you can do that?)
PPTX
Appium solution
PDF
Appium Mobile Test Automation like WebDriver
PDF
Mobile Test Automation - Appium
PDF
Advanced Appium Tips & Tricks with Jonathan Lipps
Different Android Test Automation Frameworks - What Works You the Best?
Automated Testing and Continuous Deployment for Mobile Apps with Jenkins
Getting started with appium
Top Best Practices for Successful Mobile Test Automation
Cross Platform Appium Tests: How To
[Srijan Wednesday Webinars] Building a High Performance QA Team
[Srijan Wednesday Webinar] Mastering Mobile Test Automation with Appium
Appium Meetup #2 - Mobile Web Automation Introduction
Android & iOS Automation Using Appium
Automation testing on ios platform using appium
Automated UI Testing Frameworks
Hassle-Free Continuous Integration with Real Device Testing
Parallel Test Runs with Appium on Real Mobile Devices – Hands-on Webinar
Using Selenium to Test Native Apps (Wait, you can do that?)
Appium solution
Appium Mobile Test Automation like WebDriver
Mobile Test Automation - Appium
Advanced Appium Tips & Tricks with Jonathan Lipps
Ad

Viewers also liked (19)

PPTX
InfoCamp 12 Keynote - Innovation in the fast lane with Open Source Tools
PPTX
Agile Testing at eBay
PDF
Software Measurement in agilen Projekten mit Open Source Tools
PPT
Introducing MCC Banquets & Events (Macedonian Cultural Center)
PPTX
ZNetLive- A Quick Overview
PPTX
Summertime nutrition hydration and d
PPT
Continuous Delivery Agiles 2014 Medellin
PPT
АСДК
PPTX
Ifl
PPT
Системные технологии
PPS
Fruit of Spirit
PPTX
Using Selenium and Cucumber to test a Healthcare Information System
PDF
Catalogo Lechuza Premium Collection 2011
PDF
Desarrollo de pruebas en entornos Java EE
PDF
EasyBib Presentation with Objectives
PDF
(Codemotion 2014) JVM GC: WTF?!
PPTX
Selenium Test Automation
KEY
Testing with Jenkins, Selenium and Continuous Deployment
PPTX
Rolt group 2015 pro
InfoCamp 12 Keynote - Innovation in the fast lane with Open Source Tools
Agile Testing at eBay
Software Measurement in agilen Projekten mit Open Source Tools
Introducing MCC Banquets & Events (Macedonian Cultural Center)
ZNetLive- A Quick Overview
Summertime nutrition hydration and d
Continuous Delivery Agiles 2014 Medellin
АСДК
Ifl
Системные технологии
Fruit of Spirit
Using Selenium and Cucumber to test a Healthcare Information System
Catalogo Lechuza Premium Collection 2011
Desarrollo de pruebas en entornos Java EE
EasyBib Presentation with Objectives
(Codemotion 2014) JVM GC: WTF?!
Selenium Test Automation
Testing with Jenkins, Selenium and Continuous Deployment
Rolt group 2015 pro
Ad

Similar to Mobile WebDriver Selendroid (20)

PDF
Mobile WebDriver Selendroid
PDF
Mobile Test Automation using one API and one infrastructure
PPTX
ATAGTR2017 Appium
PPTX
Mobile Testing and Mobile Automation at eBay
PDF
TMF2014 Mobile Testing Workshop Michael Palotas
 
PDF
Selenium Automation Testing - A Complete Guide
PPTX
Mobile Testing Challenges Lighting Talk with www.softtest.ie
PDF
selenium-2-mobile-web-testing
PDF
Selenium Automation Testing - A Complete Guide.pdf
PPT
Test automationslides
PDF
Webinar learn how to test any mobile app style from within eclipse using real...
PDF
Selenide
PPT
Selenium for everyone
PDF
Selenium Automation Testing - A Complete Guide.pdf
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
PDF
Selenium, Appium, and Robots!
KEY
Selenium at STPCon - Dallas 2011
PDF
Using Selenium To Test Mobile? Meet Appium!
PDF
Mobile automation: a three act tragedy
PDF
Appium & Jenkins
Mobile WebDriver Selendroid
Mobile Test Automation using one API and one infrastructure
ATAGTR2017 Appium
Mobile Testing and Mobile Automation at eBay
TMF2014 Mobile Testing Workshop Michael Palotas
 
Selenium Automation Testing - A Complete Guide
Mobile Testing Challenges Lighting Talk with www.softtest.ie
selenium-2-mobile-web-testing
Selenium Automation Testing - A Complete Guide.pdf
Test automationslides
Webinar learn how to test any mobile app style from within eclipse using real...
Selenide
Selenium for everyone
Selenium Automation Testing - A Complete Guide.pdf
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium, Appium, and Robots!
Selenium at STPCon - Dallas 2011
Using Selenium To Test Mobile? Meet Appium!
Mobile automation: a three act tragedy
Appium & Jenkins

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Cloud computing and distributed systems.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
The AUB Centre for AI in Media Proposal.docx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
NewMind AI Monthly Chronicles - July 2025
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...

Mobile WebDriver Selendroid

  • 1. Mobile WebDriver Selendroid Dominik Dary Productivity & Test Engineering Europe 2013-11-21 Software Test Usergroup Hamburg
  • 2. AGENDA 1. Facts about eBay 2. Selenium 3. Mobile Automation Requirements 4. Selendroid 5. Borderless Test Automation Mobile WebDriver Selendroid 2
  • 4. EBAY INC. FACTS •Founded in 1995 •Based in San Jose, California •27770 Employees worldwide Mobile WebDriver Selendroid 4
  • 5. MOBILE FACTS Mobile Facts Mobile Fun Facts 162,000,000 downloads of eBay Inc’s apps Every 15 seconds, a pair of ladies shoes is purchased on eBay Mobile in the UK. Mobile transaction volume 2012: 13 billion USD – overall increase of 120 % from 2011! 2013: expectation is to transact 20 billion USD 4.2 million items are listed with using mobile apps every week 500 USD mobile transaction volume every second Every week, more than 11,000 cars and 690,000 car parts are sold through eBay’s mobile apps. Source: http://www.ebayinc.com/system/download_links/eBay_MobileMomentum_Facts_052913_0.pdf?download=1 Mobile WebDriver Selendroid 5
  • 6. WHO AM I? Dominik Dary Software Engineer E-mail: ddary@ebay.com Twitter: @dominikdary Github: http://github.com/dominikdary Mobile WebDriver Selendroid 6
  • 7. DISCLAIMER –Test Automation is Software Development –End-to-End Tests are slow –Perfect vs. Good Enough – A Context where Time to Market Matters Mobile WebDriver Selendroid 7
  • 9. WHAT IS SELENIUM? Selenium automates browsers that’s it Mobile WebDriver Selendroid 9
  • 10. WHAT DO WE DO WITH SELENIUM? End to End functional test automation Manual Tests Selenium space E2 E Test s Integration Tests Unit Tests Mobile WebDriver Selendroid 10
  • 12. CLIENT •Is seen as „Selenium“ by the users •Is called by the test framework or the CI server •Generates HTTP requests which are received by the server •Supported languages: Java, C#, Python, Ruby, PHP, JS Mobile WebDriver Selendroid 12
  • 13. SERVER •Receives HTTP requests •Start and teardown of browser •Translates requests into browser specific commands •Communicates back to the client Mobile WebDriver Selendroid 13
  • 14. SCALING USING SELENIUM GRID Client Client CI server GRID Hub server server Mobile WebDriver Selendroid 14
  • 15. TECHNICAL HIGH LEVEL OVERVIEW OF THE TEST INFRASTRUCTURE Selenium Webdriver / Grid Automated Test Development via IDE QE Engineer Tests can be started on Grid eBay web front end Version Control System Clone Source Files End-to-End Tests Start the Test Suite via Brower View the Test Session and the Result in the Browser + Build via Maven Test type? Agile Team Grid Hub API Call eBay API Run test via TestNG Continuous Integration System (Jenkins) DB validation Our virtualized test infrastructure hosted on VMware vSphere Database Testing Environment Mobile WebDriver Selendroid 15
  • 16. MOBILE AUTOMATION REQUIREMENTS •Use the same approach and infrastructure as web •Use the Load Balancer / Resource Management Features of Selenium Grid •Manage multiple applications / versions / languages •No modification of mobile app •Mobile App Runtime Inspection Support Mobile WebDriver Selendroid 16
  • 17. ANOTHER AUTOMATION TOOL? Android iOS • Calabashandroid • Robotium • Appium • UiAutomator • Espresso • Calabash-ios • Frank • UIAutomation • Appium • KeepItFunctional Selendroid & ios-driver Mobile WebDriver Selendroid 17
  • 19. SELENDROID Open sourced on github: – https://github.com/selendroid Documentation: • https://selendroid.io Committers: – eBay, Salesforce and Facebook Getting help – IRC : #selendroid on freenode Mobile WebDriver Selendroid 19
  • 20. SELENDROID FEATURES •The only mobile WebDriver that supports native & hybrid apps on Android versions (API 10 to 19) •The app under test must not be modified •Interacts simultaneously with multiple Android devices •Supports hot plugging of hardware devices •Selenium Grid Support for scaling •Advanced Gestures are supported •Build in Inspector to simplify test case development •Full compatibility to the JSON Wire Protocol. Mobile WebDriver Selendroid 20
  • 21. CLIENT / SERVER ARCHITECTURE MOBILE BROWSER CLIENT JSON Wire Protocol SERVER selendroid ios-driver Mobile WebDriver Selendroid 21
  • 22. TESTING NATIVE APPS • Elements are found by locators • Found element are used for different interactions • Example Mobile WebDriver Selendroid 22
  • 24. TESTING HYBRID APPS • Build in support for testing WebViews with WebDriver • Example: Mobile WebDriver Selendroid 24
  • 26. SELENDROID ARCHITECTURE WebDriver Client HTTP HTTP & WebDriver JSON wire protocol Selendroid Standalone Driver Selendroid-standalone Android SDK USB Mobile WebDriver Selendroid 26
  • 28. TEST: DEVICE VS. EMULATOR •Hardware devices and Emulators can be used •Hardware devices are much faster •Android devices will be identified automatically •Hot plugging of hardware devices is supported Mobile WebDriver Selendroid 28
  • 29. SELENDROID INSPECTOR •View hierarchy •View UI element properties •UI screenshot with view locator •Record the click actions •Display the html of a web view •XPath helper Mobile WebDriver Selendroid 29
  • 30. SELENDROID INSPECTOR IN ACTION http://youtu.be/JKZeF3eHljo Mobile WebDriver Selendroid 30
  • 32. BORDERLESS TEST AUTOMATION •Our business is borderless  test automation needs to be as well •Use the same approach and infrastructure for web and mobile Mobile WebDriver Selendroid 32
  • 33. SAME API FOR WEB AND MOBILE A regular Web Test Case An iPhone app test An Android app test Mobile WebDriver Selendroid 33
  • 34. CROSS PLATFORM DEMO Uses in one test scenario an iOS app, web page and an Android app. Mobile WebDriver Selendroid 34
  • 35. WE ARE LOOKING FOR CONTRIBUTORS Mobile WebDriver Selendroid 35
  • 36. Thank You! Questions or Comments? Dominik Dary Fork us at Github: Email: ddary@ebay.com Twitter: @dominikdary - http://selendroid.io - http://github.com/ios-driver Mobile WebDriver Selendroid

Editor's Notes

  • #6: HiereinpaarFaktenzu eBay