Question

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,

Was it helpful?

Solution

Presses the Menu button

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

OTHER TIPS

Step 1: Open command prompt

Step 2: Move to Android SDK folder -- platforms-tools -- where adb command run

Step 3: Copy following command:

adb -e shell monkey --ignore-crashes -p packagename 500 > test_logs.txt

After successful done we can check logs in Path To Android SDK /platforms-tools/test_logs.txt

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top