Monkey Command Explanation

Source: Internet
Author: User

The Standard Monkey command

For example:

 -

Generates 500 random events that act on all the activity in the system (not all activity, but the activity that contains intent.category_launcher or Intent.category_monkey).
The above is just a simple example, there are usually a lot of options available in the actual situation

Order category

Divided into common options, event options, constraint options, debugging options
1: Common options

--Help: Printing assistance information 0 .

2: Event Options

 $ --pct-Touch: Specifies the percentage of touch events, such as:--pct-touch5 , related to the following option:-- Pct-motion <percent> (Slide event),--pct-trackball <percent> (Trackball event),--pct-nav <percent> (navigation event up/down/  Left/right),--pct-majornav <percent> (main navigation event back key, Menu key),--pct-syskeys <percent> (System key event Home, back , Startcall, Endcall, Volumecontrol),--pct-appswitch <percent> (toggle between activity),--pct-anyevent <percent> (Any event)

3: Constraint options

-P: Specifies a valid package (if not specified, it is valid for all package in the system), and one-p corresponds to a valid package, such as:-P com.ckt-p Com.ckt.asura; C:activity must contain at least one specified category in order to be activated, otherwise it will not start;

4: Debug Options

--dbg-no-Events: Initializes the activated activity, but does not produce any events. --hprof: An analysis report is generated immediately before and after the event sequence is specified--it is generally recommended that the item be  specified. --ignore-crashes: Ignore crash --ignore-Timeouts: Ignore timeout --ignore-security-Exceptions: Ignore security exception -Kill-process-after-error: Kill the process directly after an error --monitor-native-crashes: Tracing the crash of the local method --  Wait-dbg: Know that the debugger is connected to perform the monkey test.

Monkey Command Explanation

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.