Latest updates from robotium

Since my last robotium blog posts, robotium was improved in several areas. Since version 4.0 robotium supports webviews and with version 4.2 robotium provide a full support for hybrid apps. You can use methods like: typeTextInWebElement(By by, String text) waitForWebElement(By by) clickOnWebElement(WebElement webElement) clearTextInWebElement(By by) getWebElement(By by, int index) … Also a great improvement is … Read more

Building Test Suites for Robotium

If you have implemented many automated tests with Robotium, you will notice that Robotium is not the fastest tool when it comes to test execution time! Especially in big projects with more than 100 automated Robotium tests the execution time is really long (>1h). For nightly regression testing this is not a problem, but If you want to know if a simple commit from a developer break something, executing the whole test suite is not very efficient. To get a much faster impression of the quality of the last commits, you can build for example a smoke test suite. This suite covers the basic functionality like login, clicking on important entries but not all edge cases, like a full regression test suite will do.

Read more

OutOfMemory Exception with Robotium – Update IV

If you are using Robotium for test automation your Android app and you have many test cases that must be executed, you may run into an OutOfMemory Exceptions after a certain time of test execution. I have this problem with my test suite. The full test suite consists of around 110 test cases. Besides the … Read more

Robotium 3.0 is out there!

Since November 16th the latest version of Robotium 3.0 is released. This new version of Robotium provides several new and improved methods to test your Android app. As Renas Reda in the jayway blog says: “Robotium is now faster, lighter and more stable then ever!” I hope that is true because the previous versions of Robotium were really slow in the execution, even on real devices. So let’s see what’s new!

The following two methods are new to wait for views:

Read more

How to setup a test environment for Android using Robotium

This post should show how easy it is, to setup an robotium test environment for Android Apps using the Eclipse IDE. First of all you have to download the latest Android SDK depending to your operating system from http://developer.android.com/sdk/index.html. After downloading the zip file you can unzip it to:

  • /opt for Linux system
  • /Applications for Mac OSx systems
  • c:Programs for Windows systems

AVD – Manager
Start the Android avd manager with the command ./tools/android.

Read more