美文网首页
monkeyrunnerAPI

monkeyrunnerAPI

作者: 柱柱007 | 来源:发表于2018-11-20 11:13 被阅读0次

MonkeyRunner工具主要有三个类:

MonkeyRunner   ,  MonkeyDevice 和  MonkeyImage

1.MonkeyRunner类:

MonkeyRunner提供连接真机和模拟器、输入、暂停、警告框等方法。

2.MonkeyDevice类

MonkeyDevice类提供了安装和卸载程序包、开启Activity、发送按键和点击事件、运行测试包等方法。

案例1

安装并启动purcotton  

案例1

3.MonkeyImage类

MonkeyImage类在测试过程中用来保存各种格式的测试截图,并可以进行图像对比。

案例2

安装并启动APP,跳过引导页,并截图

案例2

官方API文档 :http://www.android-doc.com/tools/help/monkeyrunner_concepts.html#

相关文章

  • monkeyrunnerAPI

    MonkeyRunner工具主要有三个类: MonkeyRunner ,MonkeyDevice 和MonkeyI...

网友评论

      本文标题:monkeyrunnerAPI

      本文链接:https://www.haomeiwen.com/subject/wyqafqtx.html