当前位置:网站首页>Monkey 压力测试
Monkey 压力测试
2022-07-13 18:11:00 【学如逆水行舟,不进则退3038】
https://blog.csdn.net/weixin_45638642/article/details/122139487
https://blog.csdn.net/weixin_37124805/article/details/122846710
monkey -s 1000 --throttle 500 --ignore-crashes --monitor-native-crashes --ignore-timeouts -v -v -v 228800
一、monkey测试的目的
那么问题来了,这样去“折腾”一个APP的目的是什么?吃饱了撑着没事干吗?等下APP崩溃了怎么办?没错!monkey测试的目的就是为了看能不能把程序搞崩溃,考验APP的“抗压”能力,在这种高负荷的操作下应用程序很可能会出现不稳定乃至崩溃的现象,所以monkey测试又称压力稳定性测试
二、、结果分析整理
从 Monkey 日志中看问题:
1、程序无响应的问题:在日志中搜索 “ANR”
2、 崩溃问题:在日志中搜索 “Exception”,Java常见异常:
算术异常类:ArithmeticExecption
空指针异常类:NullPointerException
类型强制转换异常:ClassCastException
数组负下标异常:NegativeArrayException
数组下标越界异常:ArrayIndexOutOfBoundsException
违背安全原则异常:SecturityException
文件已结束异常:EOFException
文件未找到异常:FileNotFoundException
字符串转换为数字异常:NumberFormatException
操作数据库异常:SQLException
输入输出异常:IOException
违法访问错误:IllegalAccessError
内存不足错误:OutOfMemoryError
堆栈溢出错误:StackOverflowError
其他
如果程序出现崩溃或者不响应的情况,可以在log日志中搜索关键词“exception”、“cash”和“ANR”
边栏推荐
- prism模块化
- Recursive implementation of exponential enumeration
- 高薪程序员&面试题精讲系列123之Redis有哪些新特性?Redis的多线程特性你了解吗?
- TFIDF sklearn code call
- YoloV1~YoloV4
- 小白能看懂等Tacotron 中文语音合成实践
- Uni app solves the problem of unable to browse PDF files online
- . Net core uses basic authentication Middleware
- EasyCVR国标协议接入设备,设备在线、通道却不在线的原因是什么?
- Daily question brushing record (22)
猜你喜欢
随机推荐
RT_ Use of thread semaphores
Create eks cluster on AWS
Flutter RaisedButton怎样禁用
Kube apiserver access
Recursive implementation of exponential enumeration
微信小程序开发—(十一)navigator
Generics of C #
查看iptables來理解集群上service如何完成負載均衡
小白能看懂等Tacotron 中文语音合成实践
Differentiable Reasoning Over a Virtual Knowledge Base 基于虚拟知识库的可微推理
STC timer initial value calculation
力扣 732. 我的日程安排表 III
C# 再述值类型
Rasa3 domain官方文档翻译
《天天数学》连载59:二月二十八日
常用的正则表达式
手动切换scan
Flutter 加载中视图、失败视图、空视图封装
Basic use of gzip and PM2 management tools for project launch
Summary of word segmentation tools









