"Uiautomator" interfaces+exception

Source: Internet
Author: User

Interfaces

Com.android.uiautomator.core.UiWatcher

Description: Represents a conditional listener on the target device, in order to learn how to register a conditional listener, see Uidevice.registerwatcher ()

Public methods

Abstract Boolean

Checkforcondition ()

This processing method is automatically called to test the framework when the Uiselector framework cannot be used to match elements

Com.android.uiautomator.testrunner.IAutomationSupport

Class Description: Providing auxiliary support for test cases

Public methods:

abstract void

Sendstatus (int resultcode,bundle status)

Allow run-time test cases to emit temporary state

Com.android.uiautomator.testrunner.UiAutomatorTestCase

Class Description: UI Automation Tests must inherit from this class, providing access to the following information: uidevice instance; binding command-line arguments;

Public constructors: Uiautomatortestcase ()

Public methods:

Iautomationsupport

Getautomationsupport ()

To report a temporary state when you run a test case

Bundle

Getparams ()

Get Command line arguments

Uidevice

Getuidevice ()

Get Uidevice instances

void

Sleep (Long ms)

Sleep time

Inheritance method:

Junit.framework.TestCase

Junit.framework.Assert

Junit.framework.Test

Java.lang.Object

Exceptions

Com.android.uiautomator.core.UiObjectNotFoundExeption

Description: Uiselector did not match to any UI element when generating a test run

Public constructors

Uiobjectnotfoundexception (String msg)

Uiobjectnotfoundexception (String detailmessage,throwable throwable)

Uiobjectnotfoundexception (Throwable throwable)

Inheritance method

Java.lang.Throwable

Java.lang.Object

"Uiautomator" interfaces+exception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.