This is a sample native iOS app that contains many of the stock iOS components and elements. It also contains multiple Calabash tests to get you started. You can also use this app with the AWS Device Farm Built-in Fuzz Test.
You can use this app and example test suite as a reference for your own Device Farm tests.
All of the views are programatically created within the app. Storyboard or XIB files are not used. This is to prevent merge conflicts in the future.
Explicit delays are occasionally added to the tests to allow the page to fully render, they are commented as such in the code.
In order to run this app within Device Farm you will need to create a local copy of this repository and build the application from source.
- Select the Calabash target (if built with Calabash) and select an iOS Device
- Use the
Product/Build for Running
option
- Go into your build directory:
~/Library/Developer/Xcode/DerivedData/ProjectName/Build/Products/Debug-iphoneos
- Create a new directory named "Payload"
- Move the appName.app folder into the "Payload" folder
- Zip the "Payload" folder and give it a .ipa extension
Follow the steps in the official AWS Device Farm documentation for:
Component | App Implementation |
---|---|
Alerts: Modal View, Alerts, Pop Overs (only works on iPads) | source code - Calabash Test |
Static Page | source code - Calabash Test |
Login Page | source code - Calabash Test |
Navigation Controllers | source code - Calabash Test |
Expected Crash | source code |
Web View | source code - Calabash Test |
Feature | App Implementation |
---|---|
Camera | source code |
Image Gallery | source code |
Scroll View | source code |
Out of View Content | source code |
Video | source code |
Table of Elements | source code |
Component | App Implementation |
---|---|
Tab Bar | source code |
Page Viewer | source code |