Working With Android Number Picker Controls

Applies to TestComplete 15.69, last modified on November 13, 2024

Number picker (NumberPicker) controls are used to provide the editable input field with the increment button above and the decrement button below. It can also present the current value as an editable field with a smaller value above and a greater value below. The user can touch the input field to enter text or use the buttons to increment or decrement values. TestComplete provides extended support for Android number picker controls.

TestComplete analyzes control class names and automatically creates wrapper Android NumberPicker test objects for number picker controls. These objects contain specific methods and properties for simulating user actions on number pickers and retrieving their data.

Supported number picker classes are listed in the project’s Object Mapping options. You can extend this list, for example, add the class name of a custom number picker control used in your tested application, and thus enable recording and scripting support for this control. For more information, see Default Project Properties - Object Mapping Options.

Note: The described support is available only if the tested Android application is Open, that is, if it was prepared for TestComplete (see Preparing Android Applications (Legacy)).

Topics in this section provide detailed information about working with number picker controls in TestComplete and contain script samples that illustrate the explanation.

In This Section

Changing Number Picker Value

Describes how to change the position of the number picker.

Determining Minimum and Maximum Number Picker Values

Explains how to obtain the minimum and maximum values of the number picker.

Determining the Number Picker Value

Explains how to obtain the current position of the number picker.

Determining the Number Picker Text

Explains how to obtain the text of the number picker.

Related Topics of Interest

Testing Android Open Applications (Legacy)

Explains the most common approaches to working with Android Open applications.

Simulating Gestures (Multi-Touch Events) (Legacy)

Contains information on how to simulate multitouch actions in your scripts.

Simulating User Actions Over Android Devices (Legacy)

Explains the most common approaches to simulating user actions over Android applications’ controls.

See Also

Android NumberPicker Support
Object-Specific Tasks
Supported Controls
Default Project Properties - Object Mapping Options

Highlight search results