当前位置:网站首页>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
边栏推荐
- 2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板,老板也有建设积分和捣乱积分, 排好队后,所有
- 《MATLAB 神经网络43个案例分析》:第42章 并行运算与神经网络——基于CPU/GPU的并行神经网络运算
- The fourth provincial competition of Bluebridge cup single chip microcomputer
- VS2010 plug-in nuget
- Oracle 查看被锁的表和解锁
- [yolo3d]: real time detection of end-to-end 3D point cloud input
- MySQL index, transaction and storage engine
- JS generate random numbers
- Kotlin basic learning 15
- Pandora IOT development board learning (HAL Library) - Experiment 2 buzzer experiment (learning notes)
猜你喜欢

Learn more about materialapp and common attribute parsing in fluent

Homework in Chapter 3 of slam course of dark blue vision -- derivative application of T6 common functions

Pycharm2021 delete the package warehouse list you added

【人员密度检测】基于形态学处理和GRNN网络的人员密度检测matlab仿真

The first practical project of software tester: web side (video tutorial + document + use case library)

Interface debugging tool simulates post upload file - apipost

近段时间天气暴热,所以采集北上广深去年天气数据,制作可视化图看下

Influence of air resistance on the trajectory of table tennis

Haute performance et faible puissance Cortex - A53 Core Board | i.mx8m mini

Jetpack's livedata extension mediatorlivedata
随机推荐
高性能 低功耗Cortex-A53核心板 | i.MX8M Mini
A thorough understanding of the development of scorecards - the determination of Y (Vintage analysis, rolling rate analysis, etc.)
Cloud service selection of enterprises: comparative analysis of SaaS, PAAS and IAAs
UI (New ui:: MainWindow) troubleshooting
[untitled] basic operation of raspberry pie (2)
Haute performance et faible puissance Cortex - A53 Core Board | i.mx8m mini
[mv-3d] - multi view 3D target detection network
Where can I buy cancer insurance? Which product is better?
Flutter中深入了解MaterialApp,常用属性解析
How about Ping An lifetime cancer insurance?
js生成随机数
MySQL index, transaction and storage engine
[live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!
Custom classloader that breaks parental delegation
Blue Bridge Cup single chip microcomputer sixth temperature recorder
[personal notes] PHP common functions - custom functions
Unity脚本的基础语法(8)-协同程序与销毁方法
潘多拉 IOT 开发板学习(RT-Thread)—— 实验1 LED 闪烁实验(学习笔记)
蓝桥杯单片机省赛第五届
[Li Kou brush questions] 15 Sum of three numbers (double pointer); 17. Letter combination of phone number (recursive backtracking)