honeydew: a ruby driver for uiautomator which enables automated testing of android devices

14
Honeydew a Ruby driver for UIAutomator which enables automated testing of Android devices. Thiago Ghisi | @thiagoghisi | ThoughtWorks

Upload: thiago-ghisi

Post on 07-Sep-2014

1.121 views

Category:

Technology


1 download

DESCRIPTION

Honeydew is a open-source project and it is avaliable at: https://github.com/amplify-education/honeydew

TRANSCRIPT

Page 1: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

Honeydewa Ruby driver for UIAutomator which enables

automated testing of Android devices.

Thiago Ghisi | @thiagoghisi | ThoughtWorks

Page 2: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

UI Automator

“The uiautomator* testing framework lets you test your user interface (UI) efficiently by creating automated functional UI testcases that can be run against your app on one or more devices.” uiautomatorviewer - A GUI tool to scan and analyze

the UI components of an Android application. uiautomator - A Java library containing APIs to

create customized functional UI tests, and an execution engine to automate and run the tests.

*Android SDK Tools, Revision 21 or higher

*Android SDK Platform, API 16 or higher

>= Android 4.1 Jelly Bean = API level 16

Page 3: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

Workflow for the uiautomator testing framework

1. “Prepare to test by installing the app on a test device, analyzing the app’s UI components, and ensuring that your application is accessible by the test automation framework.

2. Create automated tests to simulate specific user interactions on your application.

3. Compile your test cases into a JAR file and install it on your test device along with your app.

4. Run the tests and view the test results.

5. Correct any bugs or defects discovered in testing.”

Page 4: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

Workflow for the uiautomator testing framework

1. $ uiautomatorviewer

2. Write test cases in Java using UI Automator API

3. $ ant build

4. $ adb push <path_to_output_jar> /data/local/tmp/

$ adb shell uiautomator runtest YourJar.jar -c yourtestpackage.YourTest

Page 5: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

UI Automator – Demo Calculator

Page 6: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

UI Automator – Problems?

Page 7: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

Workflow for Honeydew framework

1. $ uiautomatorviewer

2. Write test cases in ruby/rspec/cucumber using Honeydew API

3. Run your test cases: ruby test.rb bundle exec rspec bundle exec cucumber

Page 8: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

Honeydew – Demo Calculator

Page 9: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

Honeydew Explained

Page 10: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices
Page 11: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices
Page 12: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices
Page 13: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices
Page 14: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices

Thank you!

github.com/amplify-education/honeydew

@thiagoghisi