UiAutomatorInstrumentationTestRunner

public class UiAutomatorInstrumentationTestRunner
extends InstrumentationTestRunner

java.lang.Object
   ↳ android.app.Instrumentation
     ↳ android.test.InstrumentationTestRunner
       ↳ android.support.test.uiautomator.UiAutomatorInstrumentationTestRunner


Test runner for UiAutomatorTestCases. Such tests are executed on the device and have access to an applications context.

Summary

Inherited constants

From class android.test.InstrumentationTestRunner
From class android.app.Instrumentation

Public constructors

UiAutomatorInstrumentationTestRunner()

Public methods

void onStart()

Protected methods

AndroidTestRunner getAndroidTestRunner()
void initializeUiAutomatorTest(UiAutomatorTestCase test)

Perform initialization specific to UiAutomator test.

Inherited methods

From class android.test.InstrumentationTestRunner
From class android.app.Instrumentation
From class java.lang.Object
From interface android.test.TestSuiteProvider

Public constructors

UiAutomatorInstrumentationTestRunner

UiAutomatorInstrumentationTestRunner ()

Public methods

onStart

void onStart ()

Protected methods

getAndroidTestRunner

AndroidTestRunner getAndroidTestRunner ()

Returns
AndroidTestRunner

initializeUiAutomatorTest

void initializeUiAutomatorTest (UiAutomatorTestCase test)

Perform initialization specific to UiAutomator test. It sets up the test case so that it can access the UiDevice and gives it access to the command line arguments.

Parameters
test UiAutomatorTestCase: UiAutomatorTestCase to initialize.