Test Automation on Android using Robot Framework

Thorbjørn Vynne Senior SW Architect / Co-founder [email protected] www.solution57.com

Agenda -

About Solution57 Why another Android Test Framework Robot Framework Using Robot Framework for Android Testing Practical example Demo Q&A

About Solution57 - Solution57 is an embedded software solutions company, specializing in Android and other embedded Linux platforms. Founded by a small group of senior SW specialists with many years of experience in embedded development and consumer electronics. - HQ are in Aalborg - Customers include Polycom Inc, RTX, TPVision (Philips), Continental

Why another Android Test framework ? - Standard Android Testing Framework and CTS - Supports App Unit Testing on device - Supports UI Testing on device - Supports API Validation on device - But what if interaction between multiple devices or systems are needed ?

Robot Framework -

Generic Test Automation Framework written in Python Keyword Driven Test Approach Data driven tests Builtin and 3rd-party support for many features Easy to extend with new Libraries and Keywords Integrated Test Case Documentation Supports standardized test report output formats, xUnit Open Source, Apache License 2.0 http://robotframework.org/

Robot Framework crash course -

Python Library: DroidDevConf.py Robot Test Suite: simple_demo.robot Ride interactive Editor and running the test

DroidDevConf.py

simple_demo.robot

simple_demo.robot

Demo

Using RF for Android Testing

UiAutomator Wrapper -

https://github.com/xiaocong/uiautomator

Continuous Integration

Test coverage examples Type of Test

Description

Android UI Validation

Automated validation of full UI spanning multiple applications.

Cross Device Application Tests

Testing of complex interactions between multiple devices running the same app or different apps. Automated webui configuration and server interaction with apps. Example: NFC transfer between devices.

Wi-Fi Connection and Authentication Tests

Validating the full range of Wi-Fi authentication schemes as well as testing under different network conditions

Battery Tests / Power Consumption

Simulate real life usage scenarios to validate app power consumption, battery lifetime and discharge cycles.

Media Testing

Automated playback and verification of large sets of media.

Test writing becomes simple -

-

Identify IU objects using UIAutomatorViewer Create keywords for common tasks or abstracting away more complex logic Instant testing from RIDE editor.

Downside: - UIAutomator needs Android 4.1+ and preferably Android 4.2+

Practical example and Demo video -

Xapper Chat Test Wifi Access point test

Demo

Questions & Answers ?

Thank you

Thorbjørn Vynne Solution57 ApS Tel: +45 26 127 373 Email: [email protected] Web: http://www.solution57.com

Test Automation on Android w. Robot Framework.pdf

Page 3 of 19. About Solution57. - Solution57 is an embedded software solutions company,. specializing in Android and other embedded Linux platforms.

808KB Sizes 0 Downloads 111 Views

Recommend Documents

Intelligent Test Automation
Functional Testing of Software and Systems. Tester 2 practices what I .... new file in a folder, the number of files in the folder increases by one. The newly created ...

Cheap Micro Usb Otg Adapter Mini Portable Robot Shape Android ...
Cheap Micro Usb Otg Adapter Mini Portable Robot Sh ... r Samsung Sony Free Shipping & Wholesale Price.pdf. Cheap Micro Usb Otg Adapter Mini Portable ...

Cheap Moonbiffy Retail Multi Color Option Robot Shape Android ...
Cheap Moonbiffy Retail Multi Color Option Robot Shap ... Galaxy S3 S4 S5 Free Shipping & Wholesale Price.pdf. Cheap Moonbiffy Retail Multi Color Option ...

Cheap Mini Robot Shape Micro USB OTG Adapter Android ...
Cheap Mini Robot Shape Micro USB OTG Adapter Andr ... ard Smartphone For Samsung Sony Free Shipping.pdf. Cheap Mini Robot Shape Micro USB OTG ...

Cheap For Android Robot Shape Micro Mini Usb Otg Adapter ...
Cheap For Android Robot Shape Micro Mini Usb Otg Ad ... Mouse Keyboard Free Shipping & Wholesale Price.pdf. Cheap For Android Robot Shape Micro Mini ...

Automation of Restaurants Using Android Technology.
It is a basic utility of dynamic database which fetches all information from a ... Keywords: Automated food-ordering system; Wi-Fi; Dynamic Database; Android ...

Home Automation and Security System Using Android ADK.pdf ...
Home Automation and Security System Using Android ADK.pdf. Home Automation and Security System Using Android ADK.pdf. Open. Extract. Open with.