Support for Android Controls

Applies to TestComplete 14.61, last modified on April 22, 2021

How TestComplete Simulates Actions on Android Controls

TestComplete provides support for a number of most popular Android controls. It automatically recognizes individual controls by their classes and lets you interact with them when you create tests. Based on the object type, TestComplete provides a set of object-specific methods and properties for automating various interactions with the object. For example:

  • Touching a button can be simulated by calling the TouchButton operation.

  • Item selection in list view controls can be simulated by calling the TouchItem operation.

  • Selecting cells in grid view controls can be simulated by calling the TouchCell operation.

List of Supported Android Controls

For a complete list of supported Android controls and for a list of properties and methods that TestComplete provides for automating these controls, see the following topic:

Android Controls

Note that TestComplete provides support both for the listed controls and for their descendants. See Object Mapping Options.

Support for Tabular Controls

TestComplete allows creating Table Checkpoints for Android controls that represent information in a tabular form (for a complete list of these controls see About Tables Collection). With table checkpoints you can retrieve and compare data of Android tabular controls.

Using Native Properties and Methods of Android Controls

In addition to control-specific methods and properties for automating operations over Android controls, TestComplete provides access to their native properties and methods. These are the same properties and methods that are used in the application’s source code. You can use these native properties and methods to extend your tests and perform custom operations that are not available with standard properties and methods provided by TestComplete.

Working With Android Controls

To learn how to perform simple testing operations over application controls, see Simulating User Actions Over Android Open Applications and Working With Android Controls. These sections include description of most common control-specific operations you may need to perform over the tested controls (for example, checking a button’s state, determining the number of the list view’s items, getting tab page captions, expanding and collapsing expandable lists, and so on).

In addition to control-specific operations, there are common tasks you may need to perform over any application object. See Checking Object State.

See Also

Testing Android Open Applications
List of Android Controls

Highlight search results