Download - Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices
![Page 1: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/1.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/2.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/3.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/4.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/5.jpg)
UI Automator – Demo Calculator
![Page 6: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/6.jpg)
UI Automator – Problems?
![Page 7: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/7.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/8.jpg)
Honeydew – Demo Calculator
![Page 9: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/9.jpg)
Honeydew Explained
![Page 10: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/10.jpg)
![Page 11: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/11.jpg)
![Page 12: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/12.jpg)
![Page 13: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/13.jpg)
![Page 14: Honeydew: a Ruby driver for UIAutomator which enables automated testing of Android devices](https://reader033.vdocument.in/reader033/viewer/2022061103/540c1a768d7f726a208b4884/html5/thumbnails/14.jpg)
Thank you!
github.com/amplify-education/honeydew
@thiagoghisi