当前位置:网站首页>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
边栏推荐
- 《MATLAB 神经网络43个案例分析》:第42章 并行运算与神经网络——基于CPU/GPU的并行神经网络运算
- 【小技巧】使用matlab GUI以对话框模式读取文件
- Recently, the weather has been extremely hot, so collect the weather data of Beijing, Shanghai, Guangzhou and Shenzhen last year, and make a visual map
- High performance and low power cortex-a53 core board | i.mx8m Mini
- 5g era is coming in an all-round way, talking about the past and present life of mobile communication
- 《MATLAB 神经网络43个案例分析》:第41章 定制神经网络的实现——神经网络的个性化建模与仿真
- How about Ping An lifetime cancer insurance?
- Oracle的md5
- Unity脚本的基础语法(8)-协同程序与销毁方法
- Kotlin basic learning 14
猜你喜欢

《西线无战事》我们才刚开始热爱生活,却不得不对一切开炮

It took me only 3 months to jump out of the comfort zone and become an automated test engineer for 5 years

Fourier series

C语言:逻辑运算和判断选择结构例题

The second game of the 12th provincial single chip microcomputer competition of the Blue Bridge Cup

Pandora IOT development board learning (RT thread) - Experiment 1 LED flashing experiment (learning notes)

The first game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
![[personnel density detection] matlab simulation of personnel density detection based on morphological processing and GRNN network](/img/11/4a8b52603e6e14a1ed6da1264dee57.png)
[personnel density detection] matlab simulation of personnel density detection based on morphological processing and GRNN network

0基础如何学习自动化测试?按照这7步一步一步来学习就成功了

Analyse de 43 cas de réseaux neuronaux MATLAB: Chapitre 42 opérations parallèles et réseaux neuronaux - - opérations parallèles de réseaux neuronaux basées sur CPU / GPU
随机推荐
Pycharm2021 delete the package warehouse list you added
Which is better, industrial intelligent gateway or edge computing gateway? How to choose the right one?
How to do medium and long-term stocks, and what are the medium and long-term stock trading skills?
数据库文件逻辑结构形式指的是什么
In wechat applet, the externally introduced JS is used in xwml for judgment and calculation
【IBDFE】基于IBDFE的频域均衡matlab仿真
BiShe cinema ticket purchasing system based on SSM
Set vscode. When double clicking, the selected string includes the $symbol - convenient for PHP operation
MySQL之账号管理
The second game of the 12th provincial single chip microcomputer competition of the Blue Bridge Cup
regular expression
蓝桥杯单片机省赛第九届
UI (New ui:: MainWindow) troubleshooting
[wireless image transmission] FPGA based simple wireless image transmission system Verilog development, matlab assisted verification
Kotlin basic learning 14
Blue Bridge Cup single chip microcomputer sixth temperature recorder
Oracle viewing locked tables and unlocking
Imageai installation
Flutter中深入了解MaterialApp,常用属性解析
Network connection mode of QT