2

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”.

Winton Hou
  • 861
  • 1
  • 6
  • 4

1 Answers1

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

Swing
  • 858
  • 1
  • 8
  • 21
  • How can I assign the only application I want to monkey on and exclude some specific activities in the application? – twlkyao May 23 '17 at 12:45