monkey使用分享

1、环境部署:
Windows:http://www.cnblogs.com/ydnice/p/5788058.html
Mac:http://blog.csdn.net/rwang99/article/details/48292341

2、执行命令: http://www.cnblogs.com/zyanrong/p/5417535.html
adb shell monkey -p cn.businesstravel.user –ignore-crashes –ignore-timeouts –ignore-native-crashes –pct-touch 30 -s 1 -v -v –throttle 200 100000 2>C:\Users\paddy\Desktop\error.txt 1>C:\Users\paddy\Desktop\info.txt
参数 描述
-p com.lenovo.ideafriend 只仅针对特定包名进行测试
–ignore-crashes 忽略应用程序崩溃(Force & Close错误),继续发送执行事件,直到事件数执行完成
–ignore-timeouts 忽略应用程序发生ANR(Application No Responding)错误时,直到事件数执行完成
–ignore-native-crashes 忽略本地应用程序发生奔溃,直到事件数执行完成
–pct-touch 30 调整触摸事件为30%。即整个事件过程中触摸事件占30%
-s 1 伪随机数生成器seed值。Seed值为1。相同的seed值再次执行monkey,将产生相同的事件序列
-v -v 日志级别为Leve1 1。将提供较为详细的日志,包括每个发送到Activity的事件信息
–throttle 200 事件之间延时200毫秒。可以控制monkey的执行速度,如果不指定该选项,monkey事件间将不会延时
100000 执行事件数为10万次
2>/sdcard/error.txt Leve1 2日志保存到sdcard上的error.txt中
1>/sdcard/info.txt Leve1 1日志保存到sdcard上的info.txt中

3、扩展一:
0:触摸事件百分比,即参数–pct-touch
1:滑动事件百分比,即参数–pct-motion
2:缩放事件百分比,即参数–pct-pinchzoom
3:轨迹球事件百分比,即参数–pct-trackball
4:屏幕旋转事件百分比,即参数–pct-rotation
5:基本导航事件百分比,即参数–pct-nav
6:主要导航事件百分比,即参数–pct-majornav
7:系统事件百分比,即参数–pct-syskeys
8:Activity启动事件百分比,即参数–pct-appswitch
9:键盘翻转事件百分比,即参数–pct-flip
10:其他事件百分比,即参数–pct-anyevent

4、日志: http://blog.csdn.net/qinglang0213/article/details/50014663 https://www.zhihu.com/question/31685044
0:无响应问题可以在日志中搜索 “ANR” ,
1:崩溃问题搜索 “CRASH” ,
2:内存泄露问题搜索”GC”(需进一步分析),
3:异常问题搜索 “Exception”(如果出现空指针, NullPointerException,需格外重视)

About the author: tangtao

1,673 comments to “monkey使用分享”

You can leave a reply or Trackback this post.

  1. generic cialis online - 2019年6月25日 at 08:33 Reply

    can i buy cialis over the counter in spain [url=http://cialisle.com/]cialis[/url] was ist tadalafil.

  2. GENPOWER ENERGY - 2019年6月24日 at 23:13 Reply

    Pretty! This was a really wonderful article. Thanks for supplying this info.

  3. Maria Elisabeth Bettamio Vivone - 2019年6月24日 at 21:50 Reply

    I was recommended this blog by my cousin. I am not sure whether this post is written by him as no one else know
    such detailed about my trouble. You are incredible!
    Thanks!

  4. viagra - 2019年6月23日 at 21:43 Reply

    precio sildenafil farmacias del ahorro http://viagrabs.com/ viagrabs.com.
    cuanto dura el sildenafil en el organismo.

  5. Maria Elisabeth Bettamio Vivone - 2019年6月23日 at 14:03 Reply

    Hi there, I found your web site via Google while searching for a related topic, your
    web site came up, it seems great. I’ve bookmarked it
    in my google bookmarks.
    Hello there, just become alert to your weblog through Google,
    and located that it is truly informative. I’m gonna watch out for brussels.
    I will be grateful should you continue this in future.

    Lots of people can be benefited out of your writing. Cheers!

  6. Socopa Corretora - 2019年6月23日 at 12:49 Reply

    Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you!
    However, how could we communicate?

  7. Banco Paulista SA - 2019年6月23日 at 06:56 Reply

    Hey there! This is my 1st comment here so I just wanted to
    give a quick shout out and tell you I genuinely enjoy
    reading through your blog posts. Can you suggest any other blogs/websites/forums that cover the
    same subjects? Thank you!

  8. https://tinyurl.com/ - 2019年6月23日 at 05:30 Reply

    This is true for investment advice as properly.

  9. Alvaro Augusto Vidigal - 2019年6月22日 at 23:52 Reply

    You ought to take part in a contest for one of the most useful blogs on the web.
    I am going to highly recommend this blog!

  10. Joleen - 2019年6月22日 at 23:10 Reply

    Traders do pay direct and indirect costs.

  11. Banco Paulista SA - 2019年6月22日 at 20:52 Reply

    It’s very easy to find out any matter on net as compared to books, as I found this paragraph at this web page.

  12. GENPOWER PARTICIPAÇÕES - 2019年6月22日 at 20:07 Reply

    Hello, this weekend is pleasant in support of me, as this moment i
    am reading this wonderful informative paragraph here at my residence.

  13. Banco Paulista SA - 2019年6月22日 at 19:20 Reply

    Hello friends, its wonderful piece of writing on the topic of
    educationand completely explained, keep it up all the time.

  14. tinyurl.com - 2019年6月22日 at 18:47 Reply

    A monetary advisor is your planning accomplice.

  15. Alvaro Augusto Vidigal - 2019年6月22日 at 18:01 Reply

    Hi, everything is going perfectly here and ofcourse every one is sharing information,
    that’s really fine, keep up writing.

  16. Socopa Corretora - 2019年6月22日 at 17:13 Reply

    I’m not sure exactly why but this weblog is loading very slow for me.
    Is anyone else having this problem or is it a problem
    on my end? I’ll check back later and see if the problem still exists.

  17. Alvaro Augusto Vidigal - 2019年6月22日 at 13:29 Reply

    It’s perfect time to make some plans for the future and it’s time to be
    happy. I’ve read this post and if I could I desire to suggest you
    few interesting things or advice. Maybe you can write next articles
    referring to this article. I want to read more
    things about it!

  18. Nilo Lemos Neto - 2019年6月22日 at 11:48 Reply

    Link exchange is nothing else but it is simply placing the other person’s blog link on your page at appropriate place
    and other person will also do same for you.

  19. Maria Elisabeth Bettamio Vivone - 2019年6月22日 at 10:14 Reply

    Very energetic article, I liked that bit. Will there be a part
    2?

  20. Maria Elisabeth Bettamio Vivone - 2019年6月22日 at 09:44 Reply

    My partner and I stumbled over here different website and thought I might check things out.
    I like what I see so now i’m following you. Look
    forward to exploring your web page for a second
    time.

  21. Marcela - 2019年6月22日 at 09:16 Reply

    That is true for investment advice as properly.

  22. Charissa - 2019年6月22日 at 08:46 Reply

    A financial advisor is your planning associate.

Comment pages
1 32 33 34

Leave a Reply

Your email address will not be published.