前言
ADB稳定性测试新手教程
提示:以下是本篇文章正文内容,下面案例可供参考
一、直接上干货
adb devices 查看连接设备名
adb shell dumpsys window w | findstr / | findstr name= #会显示正打开的程序,以及包名
adb shell回车 dumpsys package 包名 查看APP的 appActivity
实例
adb shell monkey -p com.dongdong.ntplay --throttle 500 -v -v -v 1000 > D:/monkey_log.txt
adb shell monkey -p com.dongdong.ntplay --throttle 500 --pct-touch 60 --pct-motion 30 --pct-syskeys 5 --pct-appswitch 5 --ignore-crashes --ignore-timeouts --monitor-native-crashes -v -v -v 100000>D:/monkey_log.txt
–ignore-native-crashes --monitor-native-crashes -v -v -v 100000
adb shell : 是进入shell 也可和后面的语句分开写
-p : 参数是指定一个包或多个,两个再-p package
com.android.email : 是package name