• 【uiautomator】Interfaces+Exception


    Interfaces

    com.android.uiautomator.core.UiWatcher

    描述:表示目标设备上的条件监听器,为了学习如何注册一个条件监听器,看UiDevice.registerWatcher()

    公共方法

    abstract boolean

    checkForCondition()

    当使用UISelector框架无法匹配元素时,自动调用此处理方法去测试框架

    com.android.uiautomator.testrunner.IAutomationSupport

    类描述:为测试用例提供辅助支持

    公共方法:

    abstract void

    sendStatus(int resultCode,Bundle status)

    允许运行时的测试用例发出临时状态

    com.android.uiautomator.testrunner.UiAutomatorTestCase

    类描述: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

  • 相关阅读:
    ubuntu9.04 解决关机beep声音
    『转』饯行:理想主义终结年代的七种兵器
    尼康数码单反DX Nikkor镜头介绍
    Nikkor镜头介绍
    [转]IDL中全局变量的处理
    APSC画幅
    开心时刻1
    C# 相对路径
    使用C#语言,从Excel2007中读取数据,并显示到Form中的DataGridView。
    C# 讀取Excel、xlsx文件Excel2007
  • 原文地址:https://www.cnblogs.com/wonderful0714/p/4580507.html
Copyright © 2020-2023  润新知