public class UiAutomatorTestCase
extends InstrumentationTestCase
| java.lang.Object | ||||
| ↳ | junit.framework.Assert | |||
| ↳ | junit.framework.TestCase | |||
| ↳ | android.test.InstrumentationTestCase | |||
| ↳ | android.support.test.uiautomator.UiAutomatorTestCase | |||
这个类已被弃用。
不再需要扩展UiAutomatorTestCase。 只要您有权访问Instrumentation实例,就可以从任何测试类使用getInstance(Instrumentation) 。
在设备上执行的UI Automator测试用例。
Public constructors |
|
|---|---|
UiAutomatorTestCase() |
|
Public methods |
|
|---|---|
IAutomationSupport |
getAutomationSupport() 此方法已弃用。 改为使用 |
Bundle |
getParams() 获取命令行参数。 |
UiDevice |
getUiDevice() 获取 |
void |
sleep(long ms) 此方法已弃用。 改为使用 |
Inherited methods |
|
|---|---|
android.test.InstrumentationTestCase
|
|
junit.framework.TestCase
|
|
junit.framework.Assert
|
|
java.lang.Object
|
|
junit.framework.Test
|
|
UiAutomatorTestCase ()
IAutomationSupport getAutomationSupport ()
此方法已弃用。
改为使用sendStatus(int, Bundle)
为运行测试报告临时状态提供支持
| Returns | |
|---|---|
IAutomationSupport |
IAutomationSupport |
UiDevice getUiDevice ()
获取UiDevice当前实例。 与从测试类中的任何位置调用静态getInstance()类似。
| Returns | |
|---|---|
UiDevice |
|
void sleep (long ms)
此方法已弃用。
改为使用sleep(long) 。
呼叫 sleep(long)睡觉
| Parameters | |
|---|---|
ms |
long: is in milliseconds. |