命令:monkey -p com.test.accountagent -c android.intent.category.LAUNCHER -c android.intent.category.DEFAULT -s 100 --hprof --ignore-crashes --ignore-timeouts --ignore-security-exceptions --monitor-native-crashes --throttle 750 -v -v 160000 > mnt/sdcard/log/monkey_test.txt &
数字含义:100,种子,若命令中次数一样,表示执行的序列一样。
750ms:两次点击之间的间隔。
160000:执行的次数
此条命令:表示分钟执行80次,可跑33小时。
monkey -p com.test.phoneplus -c android.intent.category.LAUNCHER -c android.intent.category.DEFAULT -s 123 --hprof --ignore-crashes --ignore-timeouts --ignore-security-exceptions --pct-trackball 0 --monitor-native-crashes --throttle 750 -v -v -v 300000 > mnt/sdcard/monkey_test0607.txt
adb logcat -v time >d:/0607.txt
数字含义:100,种子,若命令中次数一样,表示执行的序列一样。
750ms:两次点击之间的间隔。
160000:执行的次数
此条命令:表示分钟执行80次,可跑33小时。
monkey -p com.test.phoneplus -c android.intent.category.LAUNCHER -c android.intent.category.DEFAULT -s 123 --hprof --ignore-crashes --ignore-timeouts --ignore-security-exceptions --pct-trackball 0 --monitor-native-crashes --throttle 750 -v -v -v 300000 > mnt/sdcard/monkey_test0607.txt
adb logcat -v time >d:/0607.txt