[英]What's the meaning of “Event” from Android Monkey Test report?
來自Android Monkey Test的報道。
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%
0-8的確切含義是什么?
我找到答案0:15.0%觸摸1:10.0%運動
2:15.0%追溯3:25.0%syskeys 4:15.0%導航5:2.0%majornav 6:2.0%appswitch 7:1.0%翻轉8:15.0%anyevent
現在,Android Monkey Test會編寫有關運行測試的更多信息(您可以指定更多選項來運行測試)。
使用所有提供選項運行的示例:
./adb.exe shell monkey -p your.package.name --pct-touch 1 --pct-motion 2 --pct-pinchzoom 3 --pct-trackball 4 --pct-rotation 5 --pct-nav 6 --pct-majornav 7 --pct-syskeys 8 --pct-appswitch 9 --pct-flip 10 --pct-anyevent 45 --throttle 500 -v 50
猴子寫這樣的東西(添加適當的切換器):
// Event percentages:
// 0: 1.0% (--pct-touch 1)
// 1: 2.0% (--pct-motion 2)
// 2: 3.0% (--pct-pinchzoom 3)
// 3: 4.0% (--pct-trackball 4)
// 4: 5.0% (--pct-rotation 5)
// 5: 6.0% (--pct-nav 6)
// 6: 7.0% (--pct-majornav 7)
// 7: 8.0% (--pct-syskeys 8)
// 8: 9.0% (--pct-appswitch 9)
// 9: 10.0% (--pct-flip 10)
// 10: 45.0% (--pct-anyevent 45)
這里解釋了很多選項: https : //developer.android.com/studio/test/monkey.html
你可以在這里找到grap代碼: https : //searchcode.com/codesearch/view/109282209/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.