Today (29/09/2014) is a sad day for me, because the Mobile App Europe conference in Potsdam/ Berlin has started and I can’t attend because of sickness. I was really looking forward to attend the conference as a speaker and as a attendee, to talk to so many great people from the mobile app business but … Read more
Today, I found a really nice library extension for Robotium. The name of the library is ExtSolo and stands for Extension Solo. The name stands for itself, it extends the known solo object provided by Robotium.
The library is developed by the guys from bitbar, the company behind testdroid.
If you check the provided API documentation, you find some really useful methods to integrate them into your Android test automation framework. There are methods like:
fail(java.lang.String name, java.lang.Object e)
setGPSMockLocation(double latitude, double longitude, double altitude)
In several blog posts I wrote about the Android test automation framework Robotium. Those articles described the setup of the tool and how to split the whole test suite into smaller parts. Splitting the test suite into smaller parts is sometimes neccessary because building huge test suites can be a real challenge. If you don’t think about the architecture and about an abstraction layer of your test suite, the code will be impossible to mantain, impossible to scale and at the end, you will end up in a nightmare.
The guys from appThwack developed a library called ‘Robotium-Sandwich’ which is built on top of the Android instrumentation and the Robotium framework to solve the problem of unmaintainable test suites. The idea behind Robotium-Sandwich is similar to the page objects from Selenium 2.
A couple of weeks ago, I wrote a post about the release of Robotium Recorder.
Today I want to show you, how to install and how to use the tool to record your Android tests. This tutorial based on the example Notepad app provided by the Robotium project, the source code can be found here.
Prerequisites & Installation
Before you start with recording, you have to install the Java JDK and the Android SDK. Be sure you have the latest version of the Android SDK installed or updated. If your development environment is up to date, you can import the sample app, provided by the Robotium project. Please follow the instructions in the sample, on how to insert the existing project to eclipse.
If Java, the Android SDK and the sample project is downloaded and installed, start Eclipse and open the Install New Software section in the Help menu (Help → Install New Software). In the input field “Work with” enter: http://recorder.robotium.com/updates and Press the Add… button and enter a name for the installation.