UiAutomatorInstrumentationTestRunner


class UiAutomatorInstrumentationTestRunner : InstrumentationTestRunner


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

Summary

Public constructors

Protected functions

AndroidTestRunner!

This function is deprecated.

Unit

Perform initialization specific to UiAutomator test.

Inherited Constants

From android.app.Instrumentation
From android.test.InstrumentationTestRunner
const String!

This property is deprecated.

const String!

This property is deprecated.

const String!

This property is deprecated.

const String!

This property is deprecated.

const String!

This property is deprecated.

const String!
REPORT_VALUE_ID = "InstrumentationTestRunner"

This property is deprecated.

const Int

This property is deprecated.

const Int

This property is deprecated.

const Int

This property is deprecated.

const Int

This property is deprecated.

Inherited functions

From android.app.Instrumentation
TestLooperManager!
Unit
Instrumentation.ActivityMonitor!
addMonitor(
    filter: IntentFilter!,
    result: Instrumentation.ActivityResult!,
    block: Boolean
)
Unit
addResults(results: Bundle!)
Unit
callActivityOnCreate(activity: Activity!, icicle: Bundle!)
Unit
Unit
callActivityOnNewIntent(activity: Activity!, intent: Intent!)
Unit
Unit
Unit
callActivityOnPostCreate(activity: Activity!, savedInstanceState: Bundle!)
Unit
Unit
callActivityOnRestoreInstanceState(
    activity: Activity!,
    savedInstanceState: Bundle!
)
Unit
Unit
Unit
Unit
Unit
Unit
Boolean
Unit
Unit
finish(resultCode: Int, results: Bundle!)
Bundle!
Bundle!
ComponentName!
Context!
String!
Context!
UiAutomation!
Boolean
invokeContextMenuAction(targetActivity: Activity!, id: Int, flag: Int)
Boolean
invokeMenuActionSync(targetActivity: Activity!, id: Int, flag: Int)
Boolean
Activity!
newActivity(
    clazz: Class<Any!>!,
    context: Context!,
    token: IBinder!,
    application: Application!,
    intent: Intent!,
    info: ActivityInfo!,
    title: CharSequence!,
    parent: Activity!,
    id: String!,
    lastNonConfigurationInstance: Any!
)
Application!
newApplication(cl: ClassLoader!, className: String!, context: Context!)
Unit
Boolean
onException(obj: Any!, e: Throwable!)
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
sendStatus(resultCode: Int, results: Bundle!)
Unit
Unit
Unit
Unit
Unit
Activity!
Unit

This function is deprecated.

Unit
Unit
Unit

This function is deprecated.

Unit
Unit
waitForIdle(recipient: Runnable!)
Unit
Activity!
Activity!
waitForMonitorWithTimeout(
    monitor: Instrumentation.ActivityMonitor!,
    timeOut: Long
)
From android.test.InstrumentationTestRunner
Unit

This function is deprecated.

TestSuite!

This function is deprecated.

Bundle!

This function is deprecated.

ClassLoader!

This function is deprecated.

TestSuite!

This function is deprecated.

Unit
onCreate(arguments: Bundle!)

This function is deprecated.

Unit

This function is deprecated.

Public constructors

UiAutomatorInstrumentationTestRunner

Added in 2.2.0
Deprecated in 2.3.0
UiAutomatorInstrumentationTestRunner()

Protected functions

getAndroidTestRunner

Added in 2.2.0
Deprecated in 2.3.0
protected fun getAndroidTestRunner(): AndroidTestRunner!

initializeUiAutomatorTest

Added in 2.2.0
Deprecated in 2.3.0
protected fun initializeUiAutomatorTest(test: UiAutomatorTestCase!): Unit

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.