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

This function is deprecated. Deprecated in Java

Protected functions

AndroidTestRunner!

This function is deprecated.

Unit

This function is deprecated. Deprecated in Java

Inherited Constants

From android.app.Instrumentation
const String!

This property is deprecated. Deprecated in Java

const String!

This property is deprecated. Deprecated in Java

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!

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Instrumentation.ActivityMonitor!
addMonitor(
    filter: IntentFilter!,
    result: Instrumentation.ActivityResult!,
    block: Boolean
)

This function is deprecated. Deprecated in Java

Unit
addResults(results: Bundle!)

This function is deprecated. Deprecated in Java

Unit
callActivityOnCreate(activity: Activity!, icicle: Bundle!)

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit
callActivityOnNewIntent(activity: Activity!, intent: Intent!)

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit
callActivityOnPostCreate(activity: Activity!, savedInstanceState: Bundle!)

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit
callActivityOnRestoreInstanceState(
    activity: Activity!,
    savedInstanceState: Bundle!
)

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Boolean

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit
finish(resultCode: Int, results: Bundle!)

This function is deprecated. Deprecated in Java

Bundle!

This function is deprecated. Deprecated in Java

Bundle!

This function is deprecated. Deprecated in Java

ComponentName!

This function is deprecated. Deprecated in Java

Context!

This function is deprecated. Deprecated in Java

String!

This function is deprecated. Deprecated in Java

Context!

This function is deprecated. Deprecated in Java

UiAutomation!

This function is deprecated. Deprecated in Java

Boolean
invokeContextMenuAction(targetActivity: Activity!, id: Int, flag: Int)

This function is deprecated. Deprecated in Java

Boolean
invokeMenuActionSync(targetActivity: Activity!, id: Int, flag: Int)

This function is deprecated. Deprecated in Java

Boolean

This function is deprecated. Deprecated in Java

Activity!
newActivity(
    clazz: Class<*>!,
    context: Context!,
    token: IBinder!,
    application: Application!,
    intent: Intent!,
    info: ActivityInfo!,
    title: CharSequence!,
    parent: Activity!,
    id: String!,
    lastNonConfigurationInstance: Any!
)

This function is deprecated. Deprecated in Java

java-static Application!
newApplication(clazz: Class<*>!, context: Context!)

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Boolean
onException(obj: Any!, e: Throwable!)

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit
sendStatus(resultCode: Int, results: Bundle!)

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Activity!

This function is deprecated. Deprecated in Java

Unit

This function is deprecated.

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Unit

This function is deprecated.

Unit

This function is deprecated. Deprecated in Java

Unit
waitForIdle(recipient: Runnable!)

This function is deprecated. Deprecated in Java

Unit

This function is deprecated. Deprecated in Java

Activity!

This function is deprecated. Deprecated in Java

Activity!
waitForMonitorWithTimeout(
    monitor: Instrumentation.ActivityMonitor!,
    timeOut: Long
)

This function is deprecated. Deprecated in Java

From android.test.InstrumentationTestRunner
Unit
addTestListener(listener: junit.framework.TestListener!)

This function is deprecated.

junit.framework.TestSuite!

This function is deprecated.

Bundle!

This function is deprecated.

ClassLoader!

This function is deprecated.

junit.framework.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.