Running a test script

Apparently monkeyrunner is brain dead if you run it like this:


It will fail with the error:

Can’t open specified script file
Usage: monkeyrunner [options] SCRIPT_FILE

-s      MonkeyServer IP Address.
-p      MonkeyServer TCP Port.
-v      MonkeyServer Logging level (ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF)

This is due to monkeyrunner looking for the script where monkeyrunner is located not where you running it from. So instead of looking for my file in C:0001101\Android> it looks for it where monkeyrunner is in C:\Program Files (x86)\Android\android-sdk\tools

To fix this include the path with the script (lame)

monkeyrunner C:001101\Android\

Then it will run (though my script doesn’t really work yet)

Update: It looks like my basic script worked, “worked” meaning it launched the app, which is the only thing it does at the moment, and I am running this in the emulator.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s