当前位置:网站首页>新知识:Monkey 改进版之 App Crawler
新知识:Monkey 改进版之 App Crawler
2022-06-12 01:03:00 【小梧敲代码】
原生Monkey
大家知道Monkey是Android平台上进行压力稳定性测试的工具,通过Monkey可以模拟用户触摸屏幕、滑动、按键等伪随机用户事件来对设备上的程序进行压力测试。而原生的Android Monkey存在一些缺陷:
事件太过于随机,测试有效性大打折扣
由于Monkey主要发送一些随机事件来进行测试,测试过程中的事件操作不受控制,大部分操作是无效的(比如点击的是空白区域、在不能滑动的页面进行滑动等等)。
对App页面内的控件覆盖率不佳
也是因为随机性这一特点,不能保证App页面的所有控件都能得到有效覆盖测试。
有概率跳出测试
点击到通知栏或者状态栏,就会跳转到其他的页面,从而中断当前App的测试。
Google App crawler
Google官方推出的App遍历工具,相比Monkey基于伪随机的事件,App Crawler是基于控件的遍历,可以更好的去遍历App的功能。
官方网址:
https://developer.android.google.cn/training/testing/crawler
使用步骤:
1、安装JDK与Android SDK
2、下载App Crawler并解压
3、执行以下命令启动测试:
java -jar crawl_launcher.jar --apk-file–app-package-name–android-sdk
App Crawler运行完成后会生成 crawl_output 目录,里面有遍历的每一步的截图和日志信息。
相关命令参数:
## 实测效果
今天的小知识学会了么,欢迎在留言区跟我们互动噢~
最后感谢每一个认真阅读我文章的人,下面这个网盘链接也是我费了几天时间整理的非常全面的,希望也能帮助到有需要的你!

这些资料,对于想转行做【软件测试】的朋友来说应该是最全面最完整的备战仓库,这个仓库也陪伴我走过了最艰难的路程,希望也能帮助到你!凡事要趁早,特别是技术行业,一定要提升技术功底。希望对大家有所帮助……
如果你不想一个人野蛮生长,找不到系统的资料,问题得不到帮助,坚持几天便放弃的感受的话,可以点击下方小卡片加入我们群,大家可以一起讨论交流,里面会有各种软件测试资料和技术交流。
| 点击文末小卡片领取 |
敲字不易,如果此文章对你有帮助的话,点个赞收个藏来个关注,给作者一个鼓励。也方便你下次能够快速查找。
自学推荐B站视频:
零基础转行软件测试:25天从零基础转行到入职软件测试岗,今天学完,明天就业。【包括功能/接口/自动化/python自动化测试/性能/测试开发】
边栏推荐
- Explore table component virtualization
- Chapter V - Fund professional ethics
- Component introduction - large screen cloud minimalist user manual
- 功能测试如何1个月快速进阶自动化测试?明确这2步就问题不大了
- 【SignalR全套系列】之在.Net6中实现SignalR分组通信
- Enterprise wechat H5_ Integrated message decryption class, message push get and post callback processing
- [answer] what does UML use to represent hexagonal architecture
- Elegant throttling / de buffeting decorator under LAYA
- C language pointer and array - learning 23
- Lambda中间操作distinct
猜你喜欢
![2022-06-11:注意本文件中,graph不是邻接矩阵的含义,而是一个二部图。 在长度为N的邻接矩阵matrix中,所有的点有N个,matrix[i][j]表示点i到点j的距离或者权重, 而在二部](/img/ab/b3044472561ac366f2cbd878268132.png)
2022-06-11:注意本文件中,graph不是邻接矩阵的含义,而是一个二部图。 在长度为N的邻接矩阵matrix中,所有的点有N个,matrix[i][j]表示点i到点j的距离或者权重, 而在二部
![[case] building a universal data lake for Fuguo fund based on star ring technology data cloud platform TDC](/img/e0/0326d01fc78ed2f96a475e28e74d1c.jpg)
[case] building a universal data lake for Fuguo fund based on star ring technology data cloud platform TDC
![2022-06-11: note that in this document, graph is not the meaning of adjacency matrix, but a bipartite graph. In the adjacency matrix with length N, there are n points. Matrix[i][j] represents the dist](/img/ab/b3044472561ac366f2cbd878268132.png)
2022-06-11: note that in this document, graph is not the meaning of adjacency matrix, but a bipartite graph. In the adjacency matrix with length N, there are n points. Matrix[i][j] represents the dist

LabVIEW Arduino电子称重系统(项目篇—1)

Flowable workflow

Chapter V - Fund professional ethics

Module 8 - Design message queue MySQL table for storing message data

Streaming data warehouse storage: requirements and architecture

写代码复现论文的几点建议!

Recurrent+Transformer 视频恢复领域的‘德艺双馨’
随机推荐
Interpretation of the guiding opinions on the digital transformation of banking and insurance industry by Analysys analysis
Henan Zhongchuang - from cloud to edge, how edge computing enables data centers
Current situation investigation and demand forecast report of global and Chinese phenolic resin market, 2022 Edition
Flink CDC + Hudi 海量数据入湖在顺丰的实践
写代码复现论文的几点建议!
be based on. NETCORE development blog project starblog - (11) access statistics
2022 edition of global and Chinese hexamethylene chloride industry dynamic research and investment prospect forecast report
Global and Chinese maleic anhydride polypropylene industry investment analysis and prospect trend forecast report 2022 Edition
[answer] should the role with one end of the reflexive association be called "current version"
[answer] is ubiquitous language a pseudo innovation?
Why are the values of ordereddict not equal- Why are the values of an OrderedDict not equal?
Redis advanced - correspondence between object and code base
基于.NetCore开发博客项目 StarBlog - (11) 实现访问统计
Esp8266wifi development board collects temperature and humidity data and uploads them to the Internet of things platform
Tencent programmer roast: 1kW real estate +1kw stock +300w cash, ready to retire at the age of 35
Codemirror 2 - highlight only (no editor) - codemirror 2 - highlight only (no editor)
At the digital data nextionbi online conference, traditional enterprises showed their in-depth understanding of data analysis
ARP instruction
Lambda中间操作sorted
Win jar package setting boot auto start