androidonclickactiontouch-eventmonkeyrunner

Android monkey testing onClick command


I found monkey test tool. I used this command:

monkey -p package1 -p package2 --pct-touch 100 --throttle 40 --ignore-crashes --ignore-timeouts --monitor-native-crashes --hprof -v 3000000 | tee /mnt/shared/logs/monkey_14062013_1.logp

I got success to get touch event.

1.Monkey found "ACTION_UP" & "ACTION_DOWN" . Is there any command to protect only one event? 2.Monkey any particular command to use only onClick event.

Thanks,


Solution

  • Presses the Menu button

    device.press('KEYCODE_MENU', MonkeyDevice.DOWN_AND_UP)