Class Overview
UI automation tests should extend this class. This class provides access to the following:
UiDeviceinstance- Bundle for command line parameters
UI automation tests should extend this class. This class provides access to the following:
UiDevice instance| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| UiAutomatorTestCase() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| IAutomationSupport | getAutomationSupport()
Provides support for running tests to report interim status
|
||||||||||
| Bundle | getParams()
Get command line parameters.
|
||||||||||
| UiDevice | getUiDevice()
Get current instance of
UiDevice.
|
||||||||||
| void | sleep(long ms)
Calls
sleep(long) to sleep
|
||||||||||
| [Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class junit.framework.TestCase
|
|||||||||||
From class junit.framework.Assert
|
|||||||||||
From class java.lang.Object
|
|||||||||||
From interface junit.framework.Test
|
|||||||||||
Provides support for running tests to report interim status
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.
Get current instance of UiDevice. Works similar to calling the static getInstance() from anywhere in the test classes.