其他分享
首页 > 其他分享> > monkey日志解析

monkey日志解析

作者:互联网

bash arg: -p (打印monkey命令携带的参数)
bash arg: com.dapp.testAPP123
bash arg: --throttle
bash arg: 200
bash arg: --pct-touch
bash arg: 40
bash arg: --pct-motion
bash arg: 60
bash arg: --ignore-crashes
bash arg: --ignore-timeouts
bash arg: --ignore-security-exceptions
bash arg: --ignore-native-crashes
bash arg: -v
bash arg: -v
bash arg: -v
bash arg: 1152000
:Monkey: seed=1555327004240 count=1152000(打印seed值)
:AllowPackage: com.dapp.testAPP123
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
// Selecting main activities from category android.intent.category.LAUNCHER
// - NOT USING main activity com.android.gallery3d.vivo.GalleryTabActivity (from package com.vivo.gallery)
// - NOT USING main activity com.android.bbkmusic.WidgetToTrackActivity (from package com.android.bbkmusic)
// - NOT USING main activity com.android.bbksoundrecorder.SoundRecorder (from package com.android.bbksoundrecorder)
// - NOT USING main activity com.android.camera.CameraActivity (from package com.android.camera)
// - NOT USING main activity com.android.contacts.DialtactsContactsEntryActivity (from package com.android.contacts)
// - NOT USING main activity com.android.dialer.TwelveKeyDialer (from package com.android.dialer)
......
// + Using main activity com.dapp.testAPP123.activity.WelcomeActivity (from package com.dapp.testAPP123)(允许启动的APP)
......
// Selecting main activities from category android.intent.category.MONKEY
// - NOT USING main activity com.android.settings.Settings$RunningServicesActivity (from package com.android.settings)
// - NOT USING main activity com.android.settings.Settings$StorageUseActivity (from package com.android.settings)
......
// Seeded: 1555327004240
// Event percentages:(打印各事件的百分比)
// 0: 40.0%
// 1: 60.0%
// 2: 0.0%
// 3: 0.0%
// 4: -0.0%
// 5: -0.0%
// 6: 0.0%
// 7: 0.0%
// 8: 0.0%
// 9: 0.0%
// 10: 0.0%
// 11: 0.0%
:Switch: #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.dapp.testAPP123/.activity.WelcomeActivity;end
// Allowing start of Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.dapp.testAPP123/.activity.WelcomeActivity } in package com.dapp.testAPP123
Sleeping for 200 milliseconds
:Sending Touch (ACTION_DOWN): 0:(490.0,1271.0)
:Sending Touch (ACTION_MOVE): 0:(485.8316,1272.8461)
......
// Allowing start of Intent { cmp=com.dapp.testAPP123/.activity.SportsActivity } in package com.dapp.testAPP123(启动指定intent,可以查看在大致在哪个模块或页面)
......
:Sending Touch (ACTION_MOVE): 0:(481.5137,529.8393)(打印执行动作)
:Sending Touch (ACTION_UP): 0:(485.4817,521.6828)
Sleeping for 200 milliseconds
:Sending Touch (ACTION_DOWN): 0:(576.0,825.0)
:Sending Touch (ACTION_MOVE): 0:(591.21234,838.1344)
:Sending Touch (ACTION_MOVE): 0:(602.8237,851.8741)
:Sending Touch (ACTION_MOVE): 0:(607.5011,858.8844)
:Sending Touch (ACTION_MOVE): 0:(614.86475,880.4976)
:Sending Touch (ACTION_MOVE): 0:(630.8367,904.28687)
:Sending Touch (ACTION_MOVE): 0:(639.5518,926.98193)
:Sending Touch (ACTION_MOVE): 0:(657.6301,941.7169)
:Sending Touch (ACTION_UP): 0:(670.3675,965.1066)
Sleeping for 200 milliseconds
:Sending Touch (ACTION_DOWN): 0:(758.0,334.0)
:Sending Touch (ACTION_UP): 0:(757.3742,336.1662)

//[calendar_time:2019-04-13 08:50:43.073 system_uptime:104263618](打印系统时间)
// Sending event #1102400(打印monkey事件执行次数,可以推算出当前测试执行进度)

// Rejecting start of Intent { cmp=com.tencent.mm/.plugin.exdevice.ui.ExdeviceRankInfoUI } in package com.tencent.mm (除了指定包外,拒绝启动其他app)

 

Events injected: 1152000(monkey结束时,对各种事件的统计,不用太关注)
:Sending rotation degree=0, persist=false
:Dropped: keys=0 pointers=244 trackballs=0 flips=0 rotations=0
## Network stats: elapsed time=51876375ms (0ms mobile, 0ms wifi, 51876375ms not connected)
// Monkey finished

 

标签:Sending,monkey,arg,ACTION,日志,解析,com,android,bash
来源: https://www.cnblogs.com/xiaochongc/p/10700059.html