Instrumenting Android applications in a shell-sharing environment

If you are working in an environment in which IBM® Rational® Test Workbench Eclipse Client and the Android Development Toolkit (ADT) are shell-shared, you can automatically import Android applications in the test workbench, launch the instrumentation of the applications, and make them ready for recording and running tests.

Before you begin

You must modify the configuration file in your Eclipse installation directory and replace your Java virtual machine (JVM) with Oracle Java Development Kit (JDK) to be able to run the Android Development Toolkit. For more information, see the eclipse.ini web page. In addition, you must have compiled the Android application package file (APK) for your application before starting the task.

About this task

You can add Android native or hybrid applications to the test workbench by following the instructions in Adding applications in the workbench, or by completing the following steps.

Procedure

  1. In the Navigator view of the test workbench, right-click on an Android project or in the bin directory and click Run As > Test with .
    Test with Rational Test Workbench
  2. In the wizard that opens, enter or select the name of the folder that will embed your application and the name of the APK file. Click Finish.
  3. The application is instrumented and placed in the test workbench. Now, it is ready for testing. For more information, see Recording tests from the Android mobile test client

Feedback