What’s New in UIAutomator 2.0 and How to Get Started

Dear Testdroiders,

Time to time we cover new frameworks here at Testdroid Blog and despite UIAutomator really isn’t a new framework for Android app testing, some things have changed quite a lot from the version 1.x to 2.0. That being said, the fundamental purpose of UIAutomator framework hasn’t changed and it still allows its users to focus on UI testing and provides a lightweight, but very efficient and easy-to-learn API to get things done fast.

Let’s see how things are different between these two versions – and how you should prepare tests.

Read more

Top 5 Android Testing Frameworks with Code Examples

Top 5 Android Testing Frameworks
Top 5 Android Testing Frameworks

With the rollout of Android Oreo, Google’s mobile ecosystem continues to expand rapidly. It is evident that new mobile OEMs are emerging in every corner of the world, bringing in different screen sizes, ROM/firmware, chipsets, etc. The complexity of Android app testing has been growing all the time. 

To cope with increasing testing workload, it has become a common practice to rely on a cloud-based Android app testing solution to automate scripted tests on a large scale of real devices for extensive QA. Though there are multiple choices on Android testing frameworks, it’s critical to understand the basics and how each framework performs so the selected tool can help you meet your testing needs and ultimately achieve your business goals.

Today we are going to behold 5 most used Android testing frameworks and break down the basics and code examples of each. Should you be working on iOS apps at the same time, you can also check out top 5 iOS test automation frameworks with code examples here.

Read more

How to use uiautomator within Testdroid Cloud


What is the uiautomator and what can it be used for? Basically, uiautomator testing framework let’s you test your user interface (UI) efficiently by creating automated functional UI test cases that can be executed against applications on different set of Android devices. The uiautomator is a Java library containing APIs to create customized functional UI tests, and an execution engine to automate and run the tests.

A quick comparison of uiautomator and Robotium frameworks can be found from here.

Read more

The Pros and Cons of Different Android Testing Methods

The Google Play has become an overwhelming distribution channel for developers building their next-big-things, either in forms of applications, games or even services. This ever-expanding marketplace gives developers a global reach and target coverage of hundreds of different Android devices on a rapidly growing and changing platform.

However, due to a variety of Android OS/platform versions, fragmentation does exist. Android fragmentation is known to cause multiple and incompatible versions of the system specific to the OEM and that causes applications and games to work differently (or wrongly) on many Android devices.

Read more