Moneky Test Log Analysis:
First, use one of the simplest examples to analyze:
Monkey--pct-trackball 0--throttle 100-v 500
/*p parameter: The program that represents the specified test
/*v parameter: Represents some detailed random event name for viewing monkey generation */
/* Number 100: Indicates the number of test events is 100*/
The results are as follows:
: Monkey:seed=0 count=100
: AllowPackage:com.example.android.apis
: IncludeCategory:android.intent.category.LAUNCHER
: IncludeCategory:android.intent.category.MONKEY
*/* The proportion of events and the respective numbers: */
/* Event percentages:*/
[--pct-touch PERCENT] 0:15.0%
[--pct-motion PERCENT] 1:10.0%
[--pct-trackball PERCENT] 2:15.0%
[--pct-syskeys PERCENT] 3:25.0%
[--pct-nav PERCENT] 4:15.0%
[--pct-majornav PERCENT] 5:2.0%
[--pct-appswitch PERCENT] 6:2.0%
[--pct-flip PERCENT] 7:1.0%
[--pct-anyevent PERCENT] 8:15.0%
: Switch:
/* means jump to com.example.android.apis inside the Apidemos this activity. */
#Intent; action=android.intent.action.main;category=android.intent.category.launcher;launchflags=0x10000000; component=com.example.android.apis/. Apidemos;end
/* Allow this intent to jump. */
Allowing start of Intent {Act=android.intent.action.main Cat=[android.intent.category.launcher] cmp= com.example.android.apis/. Apidemos} in the package Com.example.android.apis
/* Some of the actions sent, such as Click to Press, click Release, move. */
: Sending Pointer action_move x=-4.0 y=2.0
: Sending Pointer action_up x=0.0 y=0.0
: Sending Pointer Action_down x=207.0 y=282.0
: Sending Pointer action_up x=189.0 y=289.0
: Sending Pointer Action_down x=95.0 y=259.0
: Sending Pointer action_up x=95.0 y=259.0
: Sending Pointer Action_down x=295.0 y=223.0
: Sending Pointer action_up x=290.0 y=213.0
: Sending Pointer action_move x=-5.0 y=3.0
: Sending Pointer action_move x=0.0 y=-5.0
/* Deny this jump, because it is a jump to the activity of a non-its own package, this test refers to write test the package of its program, this jump is out of the program, into the desktop. */
Rejecting start of Intent {Act=android.intent.action.main Cat=[android.intent.category.home] cmp= com.android.launcher/. Launcher} in the package Com.android.launcher
/* Continue to send the action. 8/
: Sending Pointer Action_down x=74.0 y=201.0
: Sending Pointer action_up x=74.0 y=201.0
: Sending Pointer action_move x=3.0 y=-2.0
: Sending Pointer action_up x=0.0 y=0.0
: Sending Pointer action_move x=-4.0 y=2.0
Events injected:100
/* discarded, key = 0, pointer = 0, trackball = 0, flip = 0. */
:D ropped:keys=0 pointers=0 trackballs=0 flips=0
/* Network statistics elapsed time of 4202ms, where 4202ms is used on the phone, 0ms for the wireless network, no connection time is 0ms. */
The DOS window displays the
CRASH:com.android.speechrecorder (PID 2101)/* Displays the name of the application where the forceclose_crash occurred. */
Short Msg:java.lang.NullPointerException/* Below I don't know what it means for the time being. */
Long Msg:java.lang.NullPointerException
Build Label:generic/sdk/generic/:2.2/frf91/43546:eng/test-keys
Build changelist:43546
Build time:1277931480000
Java.lang.NullPointerException
At Com.android.speechrecorder.speechrecorderactivity$4.run (speechrecorderactivity.java:192)
"Go" Monkey testing 6-monkey Test Log