How to save not attached to a computer running monkey? How to run multiple APK monkey's?

Hello, we have not encountered when running monkey with a real machine, and ran half the results of small hand flick accidentally knocked the line, there is no report on the results to get friends ~

Today to solve this problem

 

1. How to save not attached to a computer running monkey?

1) Enter the command into the shell environment: adb shell

2) Input statement execution monkey: monkey -p com.android.mms -s 100 --throttle 1000 -v -v -v 15000> /mnt/sdcard/monkey_test.txt&

So long as the command is sent to the phone up, even unplug the phone line report or document in which da

 

2. How to run multiple apk's monkey?

Blacklist: apk addition to the implementation of the blacklist outside;

White List: apk executed only in the white list.

 

Blacklist settings:

. A txt file to create a name for the blacklist, enter the name of the application package in the file, such as mms application, enter com.android.mms in the file;

   If you do not want to have more than one application is executed, then add multiple package name in the file, note that both use the Enter key between the package name and the package name.

b. Place the file to import blacklist.txt phone / data directory, and in the implementation of the test using monkey --pkg-blacklist-file together with the parameters stored in the file path blacklist, and other parameters of the test set single apk no difference.

 

example:

monkey -pkg-blacklist-file /data/blacklist.txt -c <options> -s <seed> <limit statements> --throttle <milliseconds> executions -v> C: \ blacklist_test.txt // execute outside blacklist Applications

 

Whitelist settings:

Whitelist blacklist setting method and setting method are basically the same, just in time to create a txt file, command file should whitelist. In performing monkey perform only application whitelist.

 

example:

monkey -pkg-whitelist-file /data/whitelist.txt -c <options> -s <seed> <limit statements> --throttle <milliseconds> executions -v> C: \ whitelist_test.txt // execution whitelist application

 

Guess you like

Origin www.cnblogs.com/crystalpig/p/10954459.html