Skip to content

Most visited

Recently visited

navigation

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.