This is a collection of example Calabash test suites written for the AWS Device Farm Android sample app. Please use these tests as a reference for your own AWS Device Farm Calabash tests.
Explicit delays are occasionally added to the tests to allow the page to fully render, they are commented as such in the code.
-
If you're just getting started with Calabash, first read the Official Calabash Documentation.
We currently support calabash version 0.9.0. Be sure to have this installed when you test locally. Later versions of Calabash might cause unexpected results when running Calabash tests on AWS Device Farm.
-
Run the command to install the proper version of the calabash-android gem:
gem install calabash-android –v 0.9.0
-
Verify that you have calabash-android installed with this command:
calabash-android version
You should get "0.9.0" as the result
Follow the official Calabash guide to run your tests locally
Read the Device Farm documentation to run your tests in the AWS Cloud
Component | Android Implementation | Tests |
---|---|---|
Alerts: Toasts and Dialogs | source code | source code |
Fixtures | source code | source code |
Static Page: TextView | source code | source code |
Login Page | source code | source code |
Nested Views: Back and Up Navigation | source code | source code |
Web Views | ||
An Expected Crash | source code | Not implemented |
Feature | Android Implementation | Tests |
---|---|---|
Camera | source code | source code |
Image Collection Grid | source code | source code |
Scroll View | source code | source code |
Out of View Content | source code | source code |
Video | source code | source code |
Component | Android Implementation | Tests |
---|---|---|
Navigation Drawer | source code | source code |
ViewPager | source code | source code |