【uiautomator】Interfaces+Exception
2015-06-16 13:18
411 查看
Interfaces
com.android.uiautomator.core.UiWatcher
描述:表示目标设备上的条件监听器,为了学习如何注册一个条件监听器,看UiDevice.registerWatcher()
公共方法
com.android.uiautomator.testrunner.IAutomationSupport
类描述:为测试用例提供辅助支持
公共方法:
com.android.uiautomator.testrunner.UiAutomatorTestCase
类描述:UI automation测试必须继承此类,提供以下可访问信息:UiDevice实例;绑定命令行参数;
公共构造函数:UiAutomatorTestCase()
公共方法:
继承方法:
junit.framework.TestCase
junit.framework.Assert
junit.framework.Test
java.lang.Object
Exceptions
com.android.uiautomator.core.UiObjectNotFoundExeption
描述:在生成测试运行时,UiSelector没有匹配到任何UI元素
公共构造函数
UiObjectNotFoundException(String msg)
UiObjectNotFoundException(String detailMessage,Throwable throwable)
UiObjectNotFoundException(Throwable throwable)
继承方法
java.lang.Throwable
java.lang.Object
com.android.uiautomator.core.UiWatcher
描述:表示目标设备上的条件监听器,为了学习如何注册一个条件监听器,看UiDevice.registerWatcher()
公共方法
abstract boolean | checkForCondition() | 当使用UISelector框架无法匹配元素时,自动调用此处理方法去测试框架 |
类描述:为测试用例提供辅助支持
公共方法:
abstract void | sendStatus(int resultCode,Bundle status) | 允许运行时的测试用例发出临时状态 |
类描述:UI automation测试必须继承此类,提供以下可访问信息:UiDevice实例;绑定命令行参数;
公共构造函数:UiAutomatorTestCase()
公共方法:
IAutomationSupport | getAutomationSupport() | 为运行测试用例时报告临时状态 |
Bundle | getParams() | 得到命令行参数 |
UiDevice | getUiDevice() | 得到UiDevice实例 |
void | sleep(long ms) | 休眠时间 |
junit.framework.TestCase
junit.framework.Assert
junit.framework.Test
java.lang.Object
Exceptions
com.android.uiautomator.core.UiObjectNotFoundExeption
描述:在生成测试运行时,UiSelector没有匹配到任何UI元素
公共构造函数
UiObjectNotFoundException(String msg)
UiObjectNotFoundException(String detailMessage,Throwable throwable)
UiObjectNotFoundException(Throwable throwable)
继承方法
java.lang.Throwable
java.lang.Object
相关文章推荐
- 使用NSOperation以及NSOperationQueue
- 认识OSSIM中的UUID
- The Ultimate Guide To iPhone Resolutions
- uiscrollview uicollectionview touch事件传递问题
- Qt数据库 QSqlQueryModel实例操作 上下篇
- hadoop 的job.setOutputKeyClass和job.setOutputValueClass的几个问题
- 解决“Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误
- UITabBarController与UINavigationController配合使用
- 114自定义UITableViewCell(扩展知识:为UITableViewCell添加动画效果)
- Axure制作手机UI原型之界面滑动滚动效果
- UE4教程&论坛
- 多线程之-NSOperationQueue
- UI之单例模式
- web.xml中dispatcher标签详解
- (转)通过Chisel加强LLDB的UI调试能力
- 如何使用NSOperations和NSOperationQueues
- 【EasyUI学习-3】Easyui tabs入门实践
- Implement Stack using Queues
- 常用设备类别及其GUID
- IOS UIScrollView中 使用 touch 无法响应的问题