Creating and Editing Scripts with the FoneMonkey ConsoleWhen you launch an application that has been linked with FoneMonkey (see Setup Guide), the FoneMonkey Console is displayed on top of the application’s window.
To begin recording, touch the
Record button. The FoneMonkey console will hide and you can manually test your application. As you interact with it, FoneMonkey records FoneMonkey commands corresponding to each user interface gesture.
If you stop interacting with the application for longer than the timeout interval (by default, 2.5 seconds), the FoneMonkey console will reappear on top of your application window.
If you are not yet done recording, click any where over the application to hide the FoneMonkey console and resume recording.
Touching the
Pause button hides the FoneMonkey window and lets you interact with your application without recording. The console will reappear after the timeout interval. Touch anywhere on your application to re-hide the console and continue without recording.
Touch the More button to view the list of recorded commands.
Commands are displayed in the
Command List table. The
Timeout slider can be used to set the timeout interval anywhere from 2 to 10 seconds. If the console is reappearing more quickly than you want it to while the console is recording or paused, make the timeout longer.
Touch the
Play button to begin playback. The console hides and FoneMonkey executes each command in sequence, generating user interface actions corresponding to each command.
By default, FoneMonkey pauses .5 seconds between commands. Sometimes you may need FoneMonkey to wait additional time at certain points in a script. For example, a command might need to wait until an animation finishes running. Use
Pause commands (see command reference) to insert pauses between commands during playback.
Editing Recorded CommandsTo edit a recorded command, touch the
Edit button on the row in the command list to be edited. The Command Editor will be displayed.
Using the command editor, you can change the
Command,
Component Class, Monkey ID, or any of the associated parameters. When you’re finished editing, touch the
Done button.
Inserting and Deleting CommandsCommands can be inserted and deleted using the Insert and Delete toolbar buttons, which display the Insert or Delete buttons in each row of the displayed script.
Saving a ScriptTo save a script, touch the
Save Script button. The
Save Script dialog will be displayed.
Enter a name for the script and hit the
Save button. Scripts are saved in the application's
Documents directory.
Running a Saved ScriptTo run a saved script, touch the
Open Script button. The
Saved Script List will open displaying all saved scripts.
To open a script, touch its name in the list. The script will open in the console and can be played and edited.
Recording a New ScriptTo clear the currently opened script and begin creating a new one, click the
Open Script button and then touch the
New button displayed above the
Saved Script List.
Deleting a Saved ScriptTo delete a saved script, touch the
Open Script button and then click the
Edit button displayed above the
Saved Script List. You may then delete a saved script by touching the associated
Delete Icon.