android monkey test exclude some packages

北慕城南 提交于 2020-01-02 12:10:29

问题


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

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


回答1:


Use monkey balcklist option --pkg-blacklist-file:

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

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

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



来源:https://stackoverflow.com/questions/30069068/android-monkey-test-exclude-some-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!