The Nudge Rewards tech stack includes a mobile app and a Rails backend. The server team is responsible for maintaining the backend and API that is called by the mobile app. One of the challenges that the server team faces is having to test that the mobile application is working as intended on every deploy of the backend codebase. Low and behold, Amazon’s Device Farm is up to that challenge!
Device Farm is part of the AWS package. It has the ability to run UI automated acceptance tests against an executable Android or iOS file. Automated UI tests can be thought of as a script that clicks through parts of the application and verifies that the right elements show up.
Our solution involves having a Travis postscript that automatically deploys to alpha environment and then runs the UI tests against the mobile app which check that everything is in order. Amazon has a set of built-in fuzz tests that will randomly click through your app. But, if you want a little more specificity, Device Farm supports Java JUnit, Python Appium, Calabash and UI Automator for writing custom tests.Read More›