Skip to content

Commit

Permalink
Merge pull request #22 from lsavino/add_dev_error
Browse files Browse the repository at this point in the history
Add README advice to address vague Instruments error message
  • Loading branch information
jonathanpenn committed Jun 16, 2015
2 parents 505901f + f5795ac commit 2b6676b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ At this point you can simply click the playback button at the bottom of the Inst

Once you've set up UI AutoMonkey in your Instruments document, you can create a custom template tied to this application that you can double click to run. First, make sure the Instruments document is stopped by clicking the red record button in *the upper left* of the Instruments document. Then choose "Save As Template..." from the "File" menu and choose where to put the file. Now, you can double click this template to open Instruments with the UI AutoMonkey script already embedded. Just click the red record button in *the upper left* of the Instruments document and the app will launch and run.


## Configuration and Beyond

For simplicity's sake, the tool is just a single script you paste into a UI Automation template for your application. You could wire it up in a [command line workflow][automation] if you want, but that would take a bit more effort than you need to just get it running.
Expand Down Expand Up @@ -72,6 +73,12 @@ At the top of the script, you'll see a JavaScript dictionary of configuration se

`touchProbability` controls the different kinds of `tap` events. By default, a tap is just a single tap. Adjust these settings to set how often a double tap or long press occurs. Each of these values must be between 0 and 1.


### Troubleshooting

Running on device, the script may fail with a vague message: "An error occurred while trying to run the script." Make sure that under the Developer menu in device settings, the "Enable UI Automation" option is toggled on.


## Custom Use

You can import the monkey in an existing set of UI Automation script files and add custom events to trigger like so:
Expand Down

0 comments on commit 2b6676b

Please sign in to comment.