Play Gesture Operation

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

Use the Play Gesture operation to execute a gesture on the current Android device.

Gestures can be recorded and simulated only on devices that support a touch-sensitive interface. Usually, these are hardware devices. Gestures cannot be recorded or played back on virtual machines and emulators, unless they support a touch-sensitive interface.

Requirements

This operation is available only if you have a license for the TestComplete Mobile module.

Scripting Analogue

The operation is an analogue of the GestureObj.Execute() scripting method.

Child Operations

The operation cannot have child operations.

Operation Parameters

When you add the operation to a keyword test, TestComplete displays the Play Gesture dialog in which you can choose the gesture to be executed by the operation.

After the operation is added to your keyword test, you can change the gesture to be run by pressing the ellipsis button in the Operation column on the Test Steps page of the Keyword Test editor. This will invoke the Play Gesture dialog in which you can choose another gesture.

Remarks

Before calling this operation, you need to choose an Android device that will be the current device during testing. You can do this by calling the Select Device or Device Loop operation.

For information on recording and emulating multi-touch Android events with TestComplete, see Simulating Gestures (Multi-Touch Events) (Legacy).

See Also

Mobile Category
Executing Gestures (Multi-Touch Events) (Legacy)
About Testing Android Applications (Legacy)

Highlight search results