在命令执行过程中,按 Ctrl+C 可以退出,但不代表monkey停止 (包括运行monkey时拔掉数据线,仍然未停止),如果需要停止monkey可以杀死该进程 id,如下命令: adb shell ps | findstr monkey:停止前先查看当前系统,monkey在跑的 进程id adb shell kill <进程pid>:强制杀死在跑的monkey进程 3,monkey的日志分析 使用Monke...
1.查询进程命令:adb shell ps | findstr "monkey" 2.杀死进程命令:adb shell kill PID(15015是进程ID,不是所有Monkey进程ID都是15015,不要误会了。)
获取进程ID:adb shell ps | grep(findstr) package -p 指定包发生随机事件次数:adb shell monkey -p package 1000 // activityResuming(com.android.contacts)表示一个APP从前台进入后台然后又调回前台的过程 -v 显示所有执行的操作步骤:adb shell monkey -v -p package 1000 -s指定随机生成数的seed值:adbshe...
//#查看正在运行的进程【adb shell ps | findstr monkey】C:\Users\EDY>adb shell ps | findstr monkey shell 25242 30287 4419260 115140 binder_ioctl_write_read 0 S com.android.commands.monkey shell 26840 30287 4419260 115580 binder_ioctl_write_read 0 S com.android.commands.monkey //#停止正在运行...
查找monkey进程adb shell ps | grep monkey(windows下用findstr代替grep) 通过adb shell kill 进程id 杀死进程 再次查看adb shell ps | grep monkey进程是否已经不在 测试结果分析 错误重现,找到出错的地方,查看往前的一些事件,手动执行该事件 如果手动无法复现,使用seed值重现 ...
回复 北极 进入shell之后,使用ps|grep monkey 也查不出来, 您上面提的两种方法我还没试,我一会试一下看看,谢谢 0 回复 1条评论 只看作者 按时间倒序 按喜欢排序 北极 测试员 2021-04-25 11:43:30 方法一:grep 更改为 findstr adb shell top | findstr com.***.** 方法二:先cmd输入adb shell,然后...
adb shell settings put global policy_control null ** 查看monkey进程 windows:adb shell ps |findstr monkey linux: $adb shell $ps | grep monkey ** 杀掉进程 adb shell kill [pid进程号] **-p 指定包.可指定一个包或几个包 adb shell monkey -p com.baidu.input -p com.sohu.input 1000 ...
执行adb shell ps | grep adbd ,可以找到该后台进程,windows 请使用 findstr 替代 grep 代码语言:javascript 代码运行次数:0 复制 Cloud Studio代码运行 adb shell ps|grep adbd root2322716672832ffffffff 00019bb4S/sbin/adbd ADB命令: 如果多设备需要单独控选定调试则: ...
adb shell dumpsys activity | find "mF" adb shell dumpsys activity | grep -i run adb shell dumpsys window windows | grep mCurrent 2.测试单个应用启动速度 命令:adb shell dumpsys window w |findstr \/ |findstr name= adb shell am start -W -n com.tencent.mobileqq/com.tencent.mobileqq.act...
adb shell monkey -p com.gibb.easyclick 1monkey 表示压力测试-p 表示指定包名com.gibb.easyclick 表示需要测试的包名1 表示时间,单位毫秒大部分情况用来启动某个已知包名的应用,参考来源于Stack Overflow adb shell mkdir testmkdir 表示创建文件夹test 表示创建新文件夹的名称 ...