Я создал приведенный ниже скрипт и сохранил его как (test.mr) в папке lib и запустил из командной строки C: \ Android_Stuff \ android-sdk-windows \ tools \ lib \ monkeyrunner test.mr
@Importing monkeyrunner
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
@waiting for the device connection
device = MonkeyRunner.waitForConnection()
@Installing my app.
device.installPackage('C:/Android_Stuff/android-sdk-windows/tools/lib/purchase.apk')
@starting my demo page
device.startActivity(component='com.mobilemoneynetwork.purchase/.demo')
@selecting the Menu Button.
device.press('KEYCODE_MENU','DOWN_AND_UP')
Я получаю
Unable to access jarfile ..\framework\archquery.jar
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.