Device Farm is an app testing service that enables you to test your Android, iOS, and Fire OS apps on real, physical phones and tablets that are hosted by Amazon Web Services (AWS). Currently Device Farm allows you to run your own tests or built-in compatibility tests parallelly on the selected devices. The list below contains the test types on various platforms (from amazon.com):

Basic tutorial to setup a new project and test run

Once you are signed in, go to Amazon Console and click on Device Farm. Click on the Create New Project button and enter desired name for your project. Click on a newly created project and you will be automatically redirected to “Create new run” page. Upload your application what you want to test and click on the “Next step” to choose your test run type.

You can choose from various options like the above mentioned ones and two built-in types: Explorer and Fuzz. The “Built-in: Explorer” will crawl your app by analyzing each screen and interact with it as if it were an end user. You can provide login credentials if it’s needed for the test to log in. The “Built-in: Fuzz” test type randomly sends user interface events to devices and then provide results from devices. For this basic tutorial we will use Fuzz type, so select it.
On the next page you can create your device pool which can be used later for further test runs. The test will be run on all of this devices parallely. Choose some of devices and navigate to the next step.
The following page specifies the desired devices’ state. You can set up really amazing things with just few clicks. You can even specify the latitude and longitude coordinates for the devices if your application behavior depends on it.
On the final page you can review your settings and start the test run. Once it is finished you will get full test results, logs and screenshots.

Conclusion

Amazon’s Device Farm is a highly customizable tool for your test runs in cloud. You can run various test cases on large scale of devices without buying any of those. You can save a lot of money and time while your test coverage will grow significantly. From the developers side, you can integrate it with popular continuous integration (CI) tools like Jenkins.

Hope that you learned something new today! Cheers!

Posted By Szabolcs Berkó

    One Response to “Amazon web services – Device Farm”

  1. Argneshu Gupta says:

    how can i configured my gmail account on aws devices before starting my test run…

    Actually when I run my scripts on real time devices they will get gmail account in run tume which is already configured in devices

    Now here when I run my scripts it will prompt for gmail account login…

    Please suggest

Leave a Reply




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>