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.

1_install_robotium_via_help

Read more

Robotium Recorder

This week the version 5.0.1 of Robotium was released. The latest version has of course again many improvements and some new functionalities (methods) like pressSoftKeyboardNextButton(), waitForEmptyActivityStack(int timeout) or Solo.config. With Solo.config you have now different configuration options for your project. For further information check the latest javadoc.
The new version has also a new package name com.robotium.solo. To see all the new features check the example project or download Robotium 5.0.1 from here.

Robotium Recorder

Robotium Recorder

The biggest update that came with the new version of Robotium is Robotium Recorder! With the recorder you are able to capture your test steps of your app and to automatically
import the results to your test project. Robotium Recorder is an Eclipse plugin and can be installed from the following URL “http://recorder.robotium.com/update“. To install it, open eclipse and navigate to: Help --> Install New Software. Copy the URL in the “Work with” field and press Enter, wait while eclipse is loading the plugin and follow the wizard to install it. The full installation guide can be found here.

Read more