@Deprecated public class UiAutomatorInstrumentationTestRunner extends InstrumentationTestRunner
UiAutomatorTestCase
s. Such tests are executed
on the device and have access to an applications context.Instrumentation.ActivityMonitor, Instrumentation.ActivityResult, Instrumentation.UiAutomationFlags
ARGUMENT_DELAY_MSEC, ARGUMENT_TEST_CLASS, ARGUMENT_TEST_PACKAGE, ARGUMENT_TEST_SIZE_PREDICATE, REPORT_KEY_NAME_CLASS, REPORT_KEY_NAME_TEST, REPORT_KEY_NUM_CURRENT, REPORT_KEY_NUM_TOTAL, REPORT_KEY_STACK, REPORT_VALUE_ID, REPORT_VALUE_RESULT_ERROR, REPORT_VALUE_RESULT_FAILURE, REPORT_VALUE_RESULT_OK, REPORT_VALUE_RESULT_START
REPORT_KEY_IDENTIFIER, REPORT_KEY_STREAMRESULT
Constructor and Description |
---|
UiAutomatorInstrumentationTestRunner()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected AndroidTestRunner |
getAndroidTestRunner()
Deprecated.
|
void |
onStart()
Deprecated.
Method where the instrumentation thread enters execution.
|
addTestListener, getAllTests, getArguments, getLoader, getTestSuite, onCreate
addMonitor, addMonitor, addMonitor, callActivityOnCreate, callActivityOnCreate, callActivityOnDestroy, callActivityOnNewIntent, callActivityOnNewIntent, callActivityOnPause, callActivityOnPostCreate, callActivityOnPostCreate, callActivityOnRestart, callActivityOnRestoreInstanceState, callActivityOnRestoreInstanceState, callActivityOnResume, callActivityOnSaveInstanceState, callActivityOnSaveInstanceState, callActivityOnStart, callActivityOnStop, callActivityOnUserLeaving, callApplicationOnCreate, checkMonitorHit, checkStartActivityResult, endPerformanceSnapshot, execStartActivities, execStartActivitiesAsUser, execStartActivity, execStartActivity, execStartActivity, execStartActivityAsCaller, execStartActivityFromAppTask, finish, getAllocCounts, getBinderCounts, getComponentName, getContext, getTargetContext, getUiAutomation, getUiAutomation, invokeContextMenuAction, invokeMenuActionSync, isProfiling, newActivity, newActivity, newApplication, newApplication, onDestroy, onException, removeMonitor, runOnMainSync, sendCharacterSync, sendKeyDownUpSync, sendKeySync, sendPointerSync, sendStatus, sendStringSync, sendTrackballEventSync, setAutomaticPerformanceSnapshots, setInTouchMode, start, startActivitySync, startAllocCounting, startPerformanceSnapshot, startProfiling, stopAllocCounting, stopProfiling, waitForIdle, waitForIdleSync, waitForMonitor, waitForMonitorWithTimeout
public UiAutomatorInstrumentationTestRunner()
public void onStart()
Instrumentation
Instrumentation.sendKeySync(android.view.KeyEvent)
or Instrumentation.startActivitySync(android.content.Intent)
.
You will typically want to call finish() when this function is done, to end your instrumentation.
onStart
in class InstrumentationTestRunner
protected AndroidTestRunner getAndroidTestRunner()
getAndroidTestRunner
in class InstrumentationTestRunner