Reputation: 1823
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,
Upvotes: 1
Views: 1244
Reputation: 685
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
Upvotes: 0
Reputation: 1823
device.press('KEYCODE_MENU', MonkeyDevice.DOWN_AND_UP)
Upvotes: 0