当前位置:网站首页>New knowledge: monkey improved app crawler
New knowledge: monkey improved app crawler
2022-06-12 06:57:00 【Software testing Xiaobai】
►►►
Native Monkey
As we all know Monkey yes Android Tools for pressure stability test on the platform , adopt Monkey It can simulate the user touching the screen 、 slide 、 Pseudo-random user events such as keys are used to stress test the program on the device . And the original Android Monkey There are some drawbacks :
Events are too random , The effectiveness of the test is greatly reduced
because Monkey Mainly send some random events to test , The event operation during the test is not controlled , Most operations are invalid ( For example, click on a blank area 、 Slide on a page that cannot be slid, and so on ).Yes App Poor control coverage within the page
It is also because of the randomness , There is no guarantee App All controls of the page can be effectively covered .There is a probability of jumping out of the test
Click on the notification bar or status bar , Will jump to other pages , This interrupts the current App Test of .
►►►
Google App crawler
Google Officially launched App Traversal tool , comparison Monkey Based on pseudo-random events ,App Crawler Is a control based traversal , Can better traverse App The function of .
Official website :
https://developer.android.google.cn/training/testing/crawler
Use steps :
1
install JDK And Android SDK
JDK And SDK Please refer to the following article for installation of :
Window Under the system Java Environment building
The tester must collect the series Android SDK
2
download App Crawler And extract the

3
Execute the following command to start the test :
java -jar crawl_launcher.jar --apk-file--app-package-name--android-sdkApp Crawler After running, it will generate crawl_output Catalog , There are screenshots and log information of each step of traversal .
Related command parameters :
Parameters | describe |
--android-sdk | Appoint Android SDK The path of , This is a required tag . |
--apk-file | Specify the application APK The path of , The application grab tool will then install and grab it , This is a required tag ( If not specified --app-package-name). |
--app-package-name | Specify the package name of the application . When your app is already installed on the device and does not need to be reinstalled , Use this option . This is a required tag ( If not specified --apk-file). |
--key-store | Specify the tools to use for your application and crawling APK Path to the signed keystore . When your application needs a specific signature to run properly , Use this option . |
--key-store-password | Specify you as --key-store Option to provide the password for the keystore . This is a required tag ( If you have specified --key-store). |
--timeout-sec | Specifies the timeout for fetching ( In seconds ). If not specified , Grab will be in 60 Seconds after stop . |
►►►
Measured results
Native Monkey:

Google App Crawler:

welfare

边栏推荐
- 报表工具的二次革命
- 【图像去噪】基于非局部欧几里德中值 (NLEM) 实现图像去噪附matlab代码
- MySQL group query to obtain the latest data date function of each group
- Android studio uses database to realize login and registration interface function
- 初中学历,从不到3K,到月薪30K+,不设限的人生有多精彩
- How to update kubernetes certificates
- 六月集训 第五天——双指针
- Recommend 17 "wheels" to improve development efficiency
- Some operations of MATLAB array
- 丢掉丑陋的 toast,会动的 toast 更有趣
猜你喜欢

9 Sequence container

Tomato learning notes -seq2seq

Are you still using like+% for MySQL fuzzy query?

SQL Server 2019 installation error. How to solve it
![Leetcode: Sword finger offer 66 Build product array [application of pre and post infix]](/img/de/cd98d4d86017a13ec4172ba3054e99.png)
Leetcode: Sword finger offer 66 Build product array [application of pre and post infix]

Matlab 6-DOF manipulator forward and inverse motion

SQL injection - blind injection
![[image denoising] image denoising based on nonlocal Euclidean median (nlem) with matlab code](/img/1e/386cf601f8f60197adbc853f321472.png)
[image denoising] image denoising based on nonlocal Euclidean median (nlem) with matlab code

【图像去噪】基于偏微分方程(PDE)实现图像去噪附matlab代码
![[image detection] SAR image change detection based on depth difference and pcanet with matlab code](/img/c7/05bfa88ef1a4a38394b81755966e46.png)
[image detection] SAR image change detection based on depth difference and pcanet with matlab code
随机推荐
Map to sort
循环链表和双向链表—课上课后练
8. form label
ConVIRT论文详解(医疗图片)
[image denoising] salt and pepper noise image denoising based on Gaussian filter, mean filter, median filter and bilateral filter with matlab code attached
Network packet loss troubleshooting
Upload file (post form submission form data)
Matlab 6-DOF manipulator forward and inverse motion
基于eNSP加防火墙的千人中型校园/企业网络规划与设计(附所有配置命令)
Host computer development (firmware download software requirement analysis)
六月集训 第二天——字符串
Codeforces Round #793 (Div. 2) A B C
SQL injection - Union query
Idea common shortcut keys
Detailed explanation of convirt paper (medical pictures)
PowerDesigner connects to entity database to generate physical model in reverse
6 functions
六月集训 第七日 ——哈希表
MySQL multiple SQL batch operations (crud) in JDBC
六月集训 第一日——数组