User actions in mobile applications can be recorded by TestComplete as scripts, as keyword tests and as gestures. The latter is a mobile-specific type of tests intended for recording and simulating multi-touch actions.
TestComplete provides the AndroidGestureCollection project item for managing multi-touch actions. A project can contain only one AndroidGestureCollection item, however, each AndroidGestureCollection item may contain several gesture collections, and each collection can hold one or more gestures. Gestures can be added to and removed form collections as well gesture collections can be added to and removed form TestComplete projects. For more information on adding and removing project items, see Adding and Removing Project Items and Their Child Elements.
Any gesture can include several simultaneous touch actions. The exact number of recognized simultaneous touch actions depends on the device.
Gestures are recorded and simulated relative to screen coordinates. However, the gesture coordinates are scaled depending on the screen resolution of the current mobile device. That is, a gesture can be recorded on one device and played back on another device.
Gestures are 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.
To learn how to record gestures, see the Recording Gestures (Multi-Touch Events) topic.
Gestures and gesture collections can be managed and reviewed in the Gestures editor.