Measure the test taker's knowledge about the monkey command line parameters.

Source: Internet
Author: User

1.-P: the package in the test. It can be one or multiple packages (for example, monkey-P com. androd. A-P com. androd. B)

2.-C: If this parameter is used to specify one or more categories, Monkey only allows the system to start the activity listed by a category in these categories. If no category is specified, monkey selects the activity listed in the following categories: intent. category_launcher or intent. category_monkey. To specify multiple categories, multiple-C options are required. Each-C option can only be used for one category.

3.-Ignore-crash: The Monkey stops running when the application crashes or any runaway exception occurs. If this option is set, monkey continues to send events to the system until the count is complete.

4.-Ignore-timeouts: Generally, when an application encounters any timeout error (such as the "Application not responding" dialog box), the monkey stops running. If this option is set, monkey continues to send events to the system until the count is complete.

5.-Ignore-security-exceptions: Generally, when an application has a license error (such as starting an activity that requires certain licenses), the monkey stops running. If this option is set, monkey continues to send events to the system until the count is complete.

6.-monitor-native-crashes: monitors and reports crash events of local code in the Android system. If-kill-process-after-error is set, the system stops running.

7.-Kill-process-after-error: if an error occurs in the program, monkey will end the process.

8.-hprof: set this item to generate a profilling report immediately before and after the monkey event sequence. This will generate a large file (about 5 MB) in data/MISC, so use it with caution.

9.-PCT-touch: Adjust the percentage of touch events (a touch event is a down-up event that occurs at a single position on the screen)

10.-PCT-motion: Percentage of Action events (Action events consist of a down event, a series of random events, and an up event somewhere on the screen)

11.-PCT-trackball: Adjust the percentage of track events (track events consist of one or several random moves, sometimes with clicks)

12.-PCT-syskeys: Adjust the percentage of system key events (these keys are usually retained and used by the system, such as home, back, start call, end call, and volume control)

13.-PCT-nav adjust the percentage of basic navigation events (navigation events come from up/down/left/right of the input device)

14. -PCT-majornav: Adjust the percentage of "Main" navigation events (these events usually lead to operations in the graphic interface, such as the intermediate buttons, Back buttons, and menu buttons on the 5-way keyboard)

15.-PCT-Restart Witch: Adjust the percentage of started activities. During the random interval, monkey will execute a startactivity () call as a method to overwrite all the activities in the package to the maximum extent possible.

16.-PCT-anyevent: Adjust the percentage of started activities. It includes all other event types, such as buttons and other infrequently used device buttons.

17.-Wait-dbg: Stop the monkey in execution until a debugger is connected to it.

18.-dbg-no-events: If this option is set, monkey performs the Initial Startup and enters a test activity without generating any further events. In order to get the best result, it is combined with-V, one or more package constraints, and a non-zero value that keeps the monkey running for 30 seconds or longer to provide an environment, monitors the conversion between packages called by applications

19.-Port: Enable a dedicated port for monkey. At this time, only monkey won't help you click it, but you are a monkey yourself. When you click it, monkey will output the feedback after you click it. If the package you want to start is not started on the simulator after you complete the command, you need to start it yourself, but you can only start the packages specified in-P. CTRL + C interrupt

20. -- throttle: the number of milliseconds to wait when the event takes effect.

21.-S: seed value of the random number generator. If you run the monkey again with the same seed value, it generates the same Event Sequence

22. Count: Number of events to be sent

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.