O'Reilly logo

Robotium Automated Testing for Android by Hrushikesh Zadgaonkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Creating a Test Project Using Robotium

This chapter will guide you in creating your first test project for Android using the Robotium Framework. First, let's implement a simple calculator android application. Then, using this Application Under Test (AUT), we will look into the process of creating a Robotium test project.

Creating the AUT

In this section, we will create a simple calculator application that allows the entry of two numbers. The user can perform the following two operations on these numbers:

  • Addition
  • Subtraction

These operations are selectable via Spinner control. Spinner is similar to a combo box present in other coding languages such as HTML, and C#. The Get Result button is present to get the operational result in the bottom-aligned ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required