maoruibin/maoruibin.github.com

adb monkey 测试

Opened this issue · 0 comments

adb shell monkey -p com.moji.mjweather.alpha 
--ignore-crashes 
--ignore-timeouts 
--ignore-security-exceptions 
--pct-trackball 0 
--pct-nav 0 
--pct-majornav 0 
--pct-anyevent 0 
-v -v -v 
--throttle 
500 
1200000000 > E:\\monkey_log\\monkey_log.txt
adb shell monkey -p com.moji.mjweather -v 400000 -throttle 10 --pct-touch 30 -–pct-motion 20 -–pct-nav 20 -–pct-majornav 15 -–pct-appswitch 5 -–pct-anyevent 5 -–pct-trackball 5 -–pct-syskeys 0 '%s' --ignore-crashes --ignore-timeouts --ignore-security-exceptions > E:\monkey_log.txt

停止 Monkey

adb shell ;
ps | grep monkey;

利用上面命令可以查出 monkey 的进程 id,如下

shell   7772  185  277516 22244 ffffffff 4010a58c S com.Android.commands.monkey

可以看出是 7772,然后在 shell 下直接杀死

kill 7772