UiAutomatorTestCase


class UiAutomatorTestCase : InstrumentationTestCase

kotlin.Any
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ android.test.InstrumentationTestCase
         ↳ androidx.test.uiautomator.UiAutomatorTestCase

UI Automator test case that is executed on the device.

Summary

Public constructors

This function is deprecated. Deprecated in Java

Public functions

IAutomationSupport!

This function is deprecated.

Use sendStatus instead

Bundle!

This function is deprecated. Deprecated in Java

UiDevice!

This function is deprecated. Deprecated in Java

Unit
sleep(ms: Long)

This function is deprecated.

Use sleep instead.

Inherited functions

From android.test.InstrumentationTestCase
Instrumentation!

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

T!
<T : Activity?> launchActivity(
    pkg: String!,
    activityCls: Class<T!>!,
    extras: Bundle!
)

This function is deprecated.

T!
<T : Activity?> launchActivityWithIntent(
    pkg: String!,
    activityCls: Class<T!>!,
    intent: Intent!
)

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

Unit

This function is deprecated.

From junit.framework.TestCase
java-static Unit
assertEquals(message: String!, expected: Any!, actual: Any!)

This function is deprecated. Deprecated in Java

java-static Unit
assertFalse(message: String!, condition: Boolean)

This function is deprecated. Deprecated in Java

java-static Unit
assertNotNull(object: Any!)

This function is deprecated. Deprecated in Java

java-static Unit
assertNotSame(message: String!, expected: Any!, actual: Any!)

This function is deprecated. Deprecated in Java

java-static Unit
assertNull(object: Any!)

This function is deprecated. Deprecated in Java

java-static Unit
assertSame(message: String!, expected: Any!, actual: Any!)

This function is deprecated. Deprecated in Java

java-static Unit
assertTrue(message: String!, condition: Boolean)

This function is deprecated. Deprecated in Java

Int
countTestCases()

This function is deprecated. Deprecated in Java

junit.framework.TestResult!
createResult()

This function is deprecated. Deprecated in Java

java-static Unit
fail(message: String!)

This function is deprecated. Deprecated in Java

java-static Unit
failNotEquals(message: String!, expected: Any!, actual: Any!)

This function is deprecated. Deprecated in Java

java-static Unit
failNotSame(message: String!, expected: Any!, actual: Any!)

This function is deprecated. Deprecated in Java

java-static Unit
failSame(message: String!)

This function is deprecated. Deprecated in Java

java-static String!
format(message: String!, expected: Any!, actual: Any!)

This function is deprecated. Deprecated in Java

String!
getName()

This function is deprecated. Deprecated in Java

junit.framework.TestResult!
run()

This function is deprecated. Deprecated in Java

Unit
run(result: junit.framework.TestResult!)

This function is deprecated. Deprecated in Java

Unit
runBare()

This function is deprecated. Deprecated in Java

Unit
setName(name: String!)

This function is deprecated. Deprecated in Java

Unit
setUp()

This function is deprecated. Deprecated in Java

String!
toString()

This function is deprecated. Deprecated in Java

Public constructors

UiAutomatorTestCase

Added in 2.2.0
Deprecated in 2.2.0
UiAutomatorTestCase()

Public functions

getAutomationSupport

Added in 2.2.0
Deprecated in 2.2.0
fun getAutomationSupport(): IAutomationSupport!

Provides support for running tests to report interim status

Returns
IAutomationSupport!

IAutomationSupport

getParams

Added in 2.2.0
Deprecated in 2.2.0
fun getParams(): Bundle!

Get command line parameters. On the command line when passing -e key value pairs, the Bundle will have the key value pairs conveniently available to the tests.

getUiDevice

Added in 2.2.0
Deprecated in 2.2.0
fun getUiDevice(): UiDevice!

Get current instance of UiDevice. Works similar to calling the static getInstance from anywhere in the test classes.

sleep

Added in 2.2.0
Deprecated in 2.2.0
fun sleep(ms: Long): Unit

Calls sleep to sleep

Parameters
ms: Long

is in milliseconds.