honeydew: a ruby driver for uiautomator which enables automated testing of android devices
DESCRIPTION
Honeydew is a open-source project and it is avaliable at: https://github.com/amplify-education/honeydewTRANSCRIPT
Honeydewa Ruby driver for UIAutomator which enables
automated testing of Android devices.
Thiago Ghisi | @thiagoghisi | ThoughtWorks
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
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.”
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
UI Automator – Demo Calculator
UI Automator – Problems?
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
Honeydew – Demo Calculator
Honeydew Explained
Thank you!
github.com/amplify-education/honeydew
@thiagoghisi