O'Reilly logo

Android Application Testing Guide by Diego Torres Milano

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

The InstrumentationTestCase class

The InstrumentationTestCase class is the direct or indirect base class for various test cases that have access to Instrumentation. This is the list of the most important direct and indirect subclasses:

  • ActivityTestCase
  • ProviderTestCase2<T extends ContentProvider>
  • SingleLaunchActivityTestCase<T extends Activity>
  • SyncBaseInstrumentation
  • ActivityInstrumentationTestCase2<T extends Activity>
  • ActivityUnitTestCase<T extends Activity>

This is the UML class diagram of InstrumentationTestCase and the closest related classes:

The InstrumentationTestCase class

InstrumentationTestCase is in the android.test package, not shown in the image, and extends junit.framework.TestCase ...

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