O'Reilly logo

Testing and Securing Android Studio Applications by Antonio Hernández Niñirola, Belén Cruz Zapata

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

Tools for functional testing

In Chapter 9, Unit and Functional Tests, you learned how functional tests are performed with full connection to the system infrastructure. In this section, we will look at the different tools that allow us to easily perform functional tests in Android applications:

  • Robotium
  • Espresso
  • Appium
  • Calabash
  • MonkeyTalk
  • Bot-bot
  • Monkey
  • Wireshark

Robotium

Robotium runs on the official Android testing framework. It adds the necessary features to run through an entire Android application. It has full support for both native and hybrid applications.

Now, we will see the steps needed to run a test using Robotium on our Android application:

  1. Add the Robotium JAR to your Build Path.
  2. Create a test case using the JUnit TestCase class.
  3. Write the test ...

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