1. monkey命令使用:
adb shell monkey -p 包名 --throttle 100 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes -v -v -v 10000>monkeysss.txt
查看monkey日志位置:C-用户-用户-monkeysss.txt,可从中查看日志报错,主要可遍历项目,查看是否有崩溃问题
2.抓包命令可以看到时间:
adb logcat -v time >124.txt
3.常用的adb 命令
adb devices 查询设备id号
adb remount 重连接
adb shell input text 12345/你我他 输入文字
adb shell input keyevent:
https://blog.youkuaiyun.com/xiezhiming1234/article/details/82117709
KEYCODE_DPAD_UP 导航键 向上 19
KEYCODE_DPAD_DOWN 导航键 向下 20
KEYCODE_DPAD_LEFT 导航键 向左 21
KEYCODE_DPAD_RIGHT 导航键 向右 22
4.应用查询当前运行activity
adb shell dumpsys activity activities
1、cmd命令中输入:adb shell 进入shell命令模式
2、shell中输入:logcat | grep ActivityManager 真机运行应用,可以实时 查看当前正在运行的Activity;
adb shell am start com.hooooooo.hoo/.module.welcome.WelcomeActivity
5.查询电池的相关参数
https://blog.youkuaiyun.com/henni_719/article/details/65443772
adb shell dumpsys battery
性能测试工具:GT
https://blog.youkuaiyun.com/qq_21209179/article/details/80006637