This week I found the nice github page from Stephane Nicolas named Quality Tools for Android. He provided a sample Android app using several test frameworks, to see how to use them.
Testautomation
ExtSolo Library – to extend your Robotium test automation
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:
changeDeviceLanguage(java.util.Locale locale)
fail(java.lang.String name, java.lang.Object e)
setGPSMockLocation(double latitude, double longitude, double altitude)
turnWifi(boolean enabled)
Mobile Page Objects with Robotium-Sandwich
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.
Software Testing World Cup 2014
This week, the company Díaz & Hilterscheid GmbH announced a really cool event for 2014. The Software Testing World Cup 2014 (Website).
The Software Testing World Cup (STWC) is an event for testing practitioners to show off their skills and compete with other testing professionals. It brings the testing craft into the spotlight and gives the profession a competitive event on a global scale.
How to record your Android tests with Robotium Recorder
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.