After connecting the mobile test client with the test workbench, you can upload
the apps that are on the mobile device or on emulator to the test workbench. To record a test
for an app, you must upload that app to the test workbench.
- You must specify the Android SDK path in .
- You must have installed a Calculator app in the emulator.
When you upload an app to the
test workbench, the app is instrumented.
An instrumented application contains the application under test augmented
with code that records or plays back a test. This process does not
modify the original app. There are two ways to instrument an Android
application:
- From a mobile device, upload the application to the test workbench.
- From the test workbench, add the application to the test workbench.
If you have the .apk file on the computer, you can also add the
file directly to the
test workbench.
For information about adding apps to the
test workbench, see
Importing applications to test in the workbench.
- Launch the mobile test client and
click Upload Application. The
list of applications available in the device or emulator is displayed.
- Select the calculator app.
- Click Upload
. In
the test workbench, the
app is displayed in the Mobile and Web UI Applications editor.
The Test Navigator also displays the application under Mobile
and Web UI Incoming applications. An original package
is created and copied in the workspace to be used in the test.
- In Test Navigator, expand Mobile and Web UI
Incoming applications, right-click the calculator app
and click Generate managed application.
- In the Choose Application wizard,
select the myAndProj project.
- In File name, change the default
name of the app to Calculator.ma and click Finish.
The calculator app is added to the myAndProj project
area of the test workbench.