Page 3 of 19. About Solution57. - Solution57 is an embedded software solutions company,. specializing in Android and oth
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