当前位置:网站首页>Monkey test
Monkey test
2022-07-02 03:45:00 【~Heart to heart】
One 、 What is? Monkey test
Monkey The test is to send a pseudo-random flow of user events to the system ( Such as key input 、 Touch screen input 、 Gesture input, etc ), Realize the stability test of the application client ;
Generally speaking ,Monkey The test is “ Monkey test ”, It means like a monkey , Do not know any knowledge of user interaction of the program , Just aimless on the interface 、 Randomly click and press ;
Monkey Testing is to test the stability of software 、 A fast and effective way to be robust ;
Monkey Procedure is Android System native , from Java language , stay Android The storage path in the file system is : /system/framework/monkey.jar;
Monkey The program needs to go through adb To run the .
Two 、 Operation steps
Install and configure adb Environmental Science , And pass adb Connect the device ;
Get the package name of the application under test ;
perform Monkey Command to test
3、 ... and 、Monkey Command specification
adb shell monkey + Behavioral parameters + ">" + { Log save path }
adb shell monkey -p XXXXX --throttle 100 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes -v -v -v 1000 > d:\mylog.log
-p XXXXX -p Write the package name after it (adb shell pm list package) Check all the installation packages on your phone
--throttle { Millisecond unit time } Fixed delay between events , Unit millisecond . With this option, you can slow down Monkey Execution speed of . If you don't specify ,Monkey Events will be generated and executed as soon as possible
--ignore-crashes Monkey Ignore application crash when testing (Force&Close error ), If there is a rush , Will continue to send events to the system , Until the event count is complete ( If this item is not set , In the event of a crash ,Monkey Will stop running )
--ignore-timeouts Monkey Ignore the timeout error of the application when testing , If timeout occurs , Will continue to send events to the system , Until the event count is complete ( If this item is not set , In case of timeout ,Monkey Will stop running )
--ignore-security-exceptions Monkey Ignore the abnormal errors in the program when testing , If something unusual happens , Will continue to send events to the system , Until the event count is complete ( If this item is not set , When an exception is encountered ,Monkey Will stop running )
--ignore-native-crashes Monkey Ignore the crash caused by local code when testing , If a crash occurs , Will continue to send events to the system , Until the event count is complete ( If this item is not set , When encountering the crash caused by local code ,Monkey Will stop running )
--monitor-native-crashes Monitor the local code at the time of crash
-v -v -v
Every -v Will increase the level of feedback . common 3 A level , therefore -v -v -v You can provide the most detailed setting information .
- -v:0 level , Except start prompt 、 Less information is provided outside the test completion and final results
- -v -v:1 level , Provide more detailed test information , Send one by one to Activity Events
- -v -v -v:2 level , Provide more detailed installation information , If it is selected or not selected in the test Activity
1000000 Monkey Number of test events
d:\mylog.log Monkey Test log file
边栏推荐
- Homework in Chapter 3 of slam course of dark blue vision -- derivative application of T6 common functions
- Kotlin基础学习 14
- 数据库文件逻辑结构形式指的是什么
- Lost a few hairs, and finally learned - graph traversal -dfs and BFS
- PY3 link MySQL
- Kubernetes cluster storageclass persistent storage resource core concept and use
- NLog use
- 初识string+简单用法(二)
- The 10th Blue Bridge Cup single chip microcomputer provincial competition
- The 9th Blue Bridge Cup single chip microcomputer provincial competition
猜你喜欢
Haute performance et faible puissance Cortex - A53 Core Board | i.mx8m mini
[tips] use Matlab GUI to read files in dialog mode
Influence of air resistance on the trajectory of table tennis
[yolo3d]: real time detection of end-to-end 3D point cloud input
【无线图传】基于FPGA的简易无线图像传输系统verilog开发,matlab辅助验证
[untitled] basic operation of raspberry pie (2)
【DesignMode】建造者模式(Builder model)
傅里叶级数
【DesignMode】原型模式(prototype pattern)
Get started with Aurora 8b/10b IP core in one day (5) -- learn from the official routine of framing interface
随机推荐
u本位合约爆仓清算解决方案建议
数据库文件逻辑结构形式指的是什么
Blue Bridge Cup SCM digital tube skills
Pycharm2021 delete the package warehouse list you added
Kubernetes cluster storageclass persistent storage resource core concept and use
Kotlin basic learning 16
UI (New ui:: MainWindow) troubleshooting
蓝桥杯单片机第四届省赛
《MATLAB 神經網絡43個案例分析》:第42章 並行運算與神經網絡——基於CPU/GPU的並行神經網絡運算
regular expression
Nacos 配置中心整体设计原理分析(持久化,集群,信息同步)
What is the logical structure of database file
Which is better, industrial intelligent gateway or edge computing gateway? How to choose the right one?
[designmode] builder model
It took me only 3 months to jump out of the comfort zone and become an automated test engineer for 5 years
leetcode-1380. Lucky number in matrix
The first game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
A thorough understanding of the development of scorecards - the determination of Y (Vintage analysis, rolling rate analysis, etc.)
蓝桥杯单片机省赛第十一届第一场
PY3 link MySQL