android猴子测试排除一些软件包 [英] android monkey test exclude some packages

查看:131
本文介绍了android猴子测试排除一些软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在不包含某些软件包的情况下进行猴子测试?

How i run monkey test with exclude some packages?

monkey --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 20000000

我想测试设备中所有软件包的所有活动,但是我不想测试"com.android.camera".

I want to test all activities of all packages in my device, but i do not want to test "com.android.camera".

推荐答案

使用猴子黑名单选项-pkg-blacklist-file :

1,创建一个名为blacklist.txt的新文件,其中包含您不想测试的程序包名称,每行.

1, make a new file called blacklist.txt, contains the package name which you don't want to test,each a line.

2,将此文件推送到设备中,例如/sdcard/blacklist.txt

2, push this file into device, like /sdcard/blacklist.txt

3,运行Monkey use balcklist选项:

3, run monkey use balcklist option:

monkey --pkg-blacklist-file/sdcard/blacklist.txt --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 20000000

monkey --pkg-blacklist-file /sdcard/blacklist.txt --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 20000000

这篇关于android猴子测试排除一些软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆