When testing Android SearchView controls, you can use specific methods of the corresponding test object, as well as methods that TestComplete applies to all test and onscreen objects. You can see these methods below. The properties are organized into the Standard, Extended, Java and other categories. For more information about this, see Categories of Object Methods and Properties.
Method List | View ↓
Name | Description |
---|---|
AddNamedChild
|
Adds the specified child object to Name Mapping. |
Child
|
Returns a child object by its index. |
Click
|
Simulates a click on the object. |
Close
|
Simulates a touch on the Close button. |
Drag
|
Simulates dragging on a control from the specified point to the specified distance. |
Find
|
Searches for a child object that has the specified property values. |
FindAll
|
Returns an array of child objects that have the specified property values. |
FindAllChildren
|
Returns an array of child objects that have the specified property values. |
FindChild
|
Searches for a child object that has the specified property values. |
FindChildEx
|
Searches for a child object that has the specified property values during the specified timeout period. |
FindEx
|
Searches for a child object that has the specified property values during the specified timeout period. |
FindId
|
Returns a child object by its identifier. |
GetUnderlyingObject
|
Returns the test object, to which the given mapping item corresponds. |
Keys
|
Sends one or several key presses to an object. |
LongTouch
|
Simulates a long touch on the object. |
Picture
|
Captures the image of the specified rectangular area of the object. |
Refresh
|
Refreshes the child object list. |
RefreshMappingInfo
|
Instructs TestComplete to re-identify the mapped object using the identification information specified in Name Mapping. |
RemoveNamedChild
|
Deletes the specified child mapped object from Name Mapping. |
ScreenToWindow
|
Converts coordinates relative to the mobile device's screen to coordinates relative to the object. |
Submit
|
Simulates a touch on the Submit button. |
Touch
|
Simulates a touch on the object. |
Validate
|
Obsolete. Generates the OnValidate event for the object. |
WaitAliasChild
|
Waits until the child object with the specified alias becomes available during the timeout period. |
WaitChild
|
Waits until the specified child object becomes available during the timeout period. |
WaitNamedChild
|
Waits until a child object with the specified mapped name becomes available during the timeout period. |
WaitProperty
|
Waits until the specified object property achieves the specified value during the timeout period. |
WindowToScreen
|
Converts coordinates relative to the object to the mobile device’s screen coordinates. |
Standard
This category includes methods that TestComplete applies to all test objects.
Name | Description |
---|---|
Child
|
Returns a child object by its index. |
Find
|
Searches for a child object that has the specified property values. |
FindAll
|
Returns an array of child objects that have the specified property values. |
FindAllChildren
|
Returns an array of child objects that have the specified property values. |
FindChild
|
Searches for a child object that has the specified property values. |
FindChildEx
|
Searches for a child object that has the specified property values during the specified timeout period. |
FindEx
|
Searches for a child object that has the specified property values during the specified timeout period. |
FindId
|
Returns a child object by its identifier. |
Picture
|
Captures the image of the specified rectangular area of the object. |
Refresh
|
Refreshes the child object list. |
ScreenToWindow
|
Converts coordinates relative to the mobile device's screen to coordinates relative to the object. |
Validate
|
Obsolete. Generates the OnValidate event for the object. |
WaitChild
|
Waits until the specified child object becomes available during the timeout period. |
WaitProperty
|
Waits until the specified object property achieves the specified value during the timeout period. |
WindowToScreen
|
Converts coordinates relative to the object to the mobile device’s screen coordinates. |
Actions
This category includes methods that simulate user actions on the tested controls.
Name | Description |
---|---|
Click
|
Simulates a click on the object. |
Close
|
Simulates a touch on the Close button. |
Drag
|
Simulates dragging on a control from the specified point to the specified distance. |
Keys
|
Sends one or several key presses to an object. |
LongTouch
|
Simulates a long touch on the object. |
Submit
|
Simulates a touch on the Submit button. |
Touch
|
Simulates a touch on the object. |
<Name Mapping>
These methods are available only if the test object has been mapped (see Name Mapping). You can use them in your tests, but they are not displayed in the Object Browser panel.
Name | Description |
---|---|
AddNamedChild
|
Adds the specified child object to Name Mapping. |
GetUnderlyingObject
|
Returns the test object, to which the given mapping item corresponds. |
RefreshMappingInfo
|
Instructs TestComplete to re-identify the mapped object using the identification information specified in Name Mapping. |
RemoveNamedChild
|
Deletes the specified child mapped object from Name Mapping. |
WaitAliasChild
|
Waits until the child object with the specified alias becomes available during the timeout period. |
WaitNamedChild
|
Waits until a child object with the specified mapped name becomes available during the timeout period. |
Other Categories
TestComplete provides access to methods and properties of your tested Android applications’ objects. You can view these properties and methods in the Java, Private, Protected and Public categories. These methods and properties are not described in the TestComplete help file. For more information on them, please see the documentation on the development tool and libraries that were used to create your tested Android application.
Name | Description |
---|---|
Close
|
Simulates a touch on the Close button. |
Submit
|
Simulates a touch on the Submit button. |