monkey -pcom.example.android.apis -v -v -v 100
:Monkey: seed=0 count=100
:AllowPackage: com.example.android.apis
IncludeCategory:android.intent.category.LAUNCHER
IncludeCategory:android.intent.category.MONKEY
//种事件所占的比例。
//各数字分别表示:
[--pct-touch PERCENT]
[--pct-motion PERCENT]
[--pct-trackball PERCENT]
[--pct-syskeys PERCENT]
[--pct-nav PERCENT]
[--pct-majornav PERCENT]
[--pct-appswitch PERCENT]
[--pct-flip PERCENT]
[--pct-anyevent PERCENT]
// Event percentages:
// 0: 15.0%
// 1: 10.0%
// 2: 15.0%
// 3: 25.0%
// 4: 15.0%
// 5: 2.0%
// 6: 2.0%
// 7: 1.0%
// 8: 15.0%
:Switch:
//表示跳转到com.example.android.apis里面的ApiDemos这一个Activity里。
#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=com.example.android.apis/.ApiDemos;end
//允许此Intent跳转,
// Allowing start ofIntent { act=android.intent.action.MAIN
//cat=[android.intent.category.LAUNCHER]cmp=com.example.android.apis/.ApiDemos } in
//packagecom.example.android.apis
//发送的一些动作,如点击按下,点击放开,移动。
: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.0y=282.0
:Sending Pointer ACTION_UP x=189.0 y=289.0
079 :Sending Pointer ACTION_DOWN x=95.0y=259.0
080 :Sending Pointer ACTION_UP x=95.0y=259.0
081 :Sending Pointer ACTION_DOWN x=295.0y=223.0
082 :Sending Pointer ACTION_UP x=290.0y=213.0
083 :Sending Pointer ACTION_MOVE x=-5.0y=3.0
084 :Sending Pointer ACTION_MOVE x=0.0y=-5.0
//拒绝此跳转,因为它是跳转到非它自己的包的Activity,本测试中是指写测试它程序所在的包,此跳转是跳出本程序,进入到桌面。
// Rejecting start ofIntent { act=android.intent.action.MAIN cat=[android.intent.category.HOME]
//cmp=com.android.launcher/.Launcher} in package com.android.launcher
//继续发送动作。
: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
//丢弃的,键=0,指针=0,轨迹球=0,翻转=0。
:Dropped: keys=0 pointers=0 trackballs=0flips=0
//网络统计经过时间为4202ms,其中4202ms是用于在手机上的,0ms用于无线网络上,没
//有连接的时间为0ms。
## Network stats: elapsed time=4202ms(4202ms mobile, 0ms wifi, 0ms not connected)
//monkey测试完成。
// Monkey finished