UiAutomatorInstrumentationTestRunner

public class UiAutomatorInstrumentationTestRunner
extends InstrumentationTestRunner

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


测试跑步者为UiAutomatorTestCase s。 这些测试在设备上执行并可以访问应用程序上下文。

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)

执行特定于UiAutomator测试的初始化。

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.