Typically, you record an area or a feature of an app for
a test. You will have multiple tests for each area or feature so that
you cover the entire functionality of an app.
Mobile tests are typically created by recording a session
on the mobile device or on the emulator that runs the app being tested.
At the end of the recording session, you close the app and the
IBM® Rational® Test Workbench Mobile Client uploads
the recorded session to the
IBM Rational Test Workbench,
where it is used to generate a test.
When you record an app, the
Android application (the .apk file) is recompiled into a recording-ready
app that has been instrumented to capture user actions. Because Android
does not allow two versions of an application to be installed at the
same time, the test workbench uninstalls the original application
and replaces it with the recording-ready app. When you play back a
test, the test workbench uninstalls the recording-ready app and replaces
it with a playback-ready app, a version of the original application
that has been signed with a test workbench certificate. During this
process, you must click the Uninstall, OK,
and Install buttons as appropriate.
If
your device or emulator is on Android 4.1 or earlier, and you enabled
the silent mode option, the uninstallation and installation process
happens in the background. To enable silent mode, connect the device
to a computer that has the Android SDK installed. Use an USB cable
and enable USB debugging. Ensure that you installed the appropriate
USB driver. Next, open the command prompt on the computer, point to
the
C:\Users\Administrator\Downloads\android-sdk-windows\platform-tools directory,
and run the following commands:
- adb devices: Lists the devices connected
to the computer by the USB cable.
- adb tcpip 5555: Makes the silent mode option
available on the device.
Follow these steps every time you reboot the device.
Silent
mode is not available on devices and emulators with API level 17 and
later (Android 4.2 +) due to a known limitation.