SeeTestAutomation - Event Recording - Android
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
Multi**-Touch actions**
Event recording for Android devices can be done on the device itself. So, it is possible to also create events for multi touch gestures.
Step 1: Click on the "Device" tab, and then click on 'Event Recording' button.
Event recording module
Step 2: Choose the device to record with and Click on the 'Record' button.
Step 3: You can use the real device to record with. Move your fingers on the real device to create the event.
Note: It should be a single action.
In the following example we will record a zoom in event on Google maps.
Step 4: When you finish recording, click the 'Stop' button.
Step 5: Click the 'Play' button to see if the action has been recorded the way you wanted.
Step 6: Click the 'Save' button in order to save the event.
On our example we will name the event ZoomIn.
Saving the event will enable us to use it on the tests.
You will then be asked you if you want to add this event in your current script.
Clicking 'Yes' will add a new step at the end of the script.
Step 7: The command to execute the event is "sendText".
The Text parameter will be {event:event name}
.
Code Examples
Java Example
client.sendText("{event:ZoomIn}");
C# Example Expand source
client.SendText("{event:ZoomIn}");
VBScript Example Expand source
client.SendText "{event:ZoomIn}"
Report
Python Example Expand source
self.client.sendText("{event:ZoomIn}")
Perl Example Expand source
$client->sendText("{event:ZoomIn}");