当前位置:网站首页>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

边栏推荐
- What is the difference between < t > and object?
- 【图像去噪】基于高斯滤波、均值滤波、中值滤波、双边滤波四种滤波实现椒盐噪声图像去噪附matlab代码
- 6 functions
- 六月集训 第一日——数组
- "I was laid off by a big factory"
- sql server2019安装到这步无法进行下一步了,如何解决?
- Reentrantlock underlying AQS source code analysis
- 如何更新 Kubernetes 证书
- Unable to load bean of class marked with @configuration
- Database syntax related problems, solve a correct syntax
猜你喜欢

Scons编译IMGUI

Database syntax related problems, solve a correct syntax

8 IO Library

VSCode常用插件

【数据聚类】本专栏中涉及数据集、可视化及注意事项

Troubleshooting of cl210openstack operation -- Chapter experiment

PHP read / write cookie

Drawing grid navigation by opencv map reading

4 expression

(14) The software version number is displayed in the flash window of blender source code analysis
随机推荐
基于eNSP加防火墙的千人中型校园/企业网络规划与设计(附所有配置命令)
五月集训(第28天)——动态规划
六月集训 第八日——前缀和
五、EL 表达式& JSTL 标签库
esp32 hosted
Vscode common plug-ins
Codeforces Round #793 (Div. 2) A B C
Scons编译IMGUI
六月集训 第一日——数组
Leetcode: Sword finger offer 63 Maximum profit of stock [record prefix minimum and or no brain segment tree]
Jackson XML is directly converted to JSON without writing entity classes manually
SQL language
六月集训 第二天——字符串
Zhang Chi: is process a panacea?
[easyexcel] easyexcel checks whether the header matches the tool class encapsulated in easyexcel, including the field verification function. You can use validate to verify
企业微信官方 加解密库 PHP7版本报错 mcrypt_module_open 未定义方法 并且被PHP抛弃 解决方法使用 openssl解决
六月集训 第五天——双指针
d不能用非常ctfe指针
leetcode:890. 查找和替换模式【两个dict记录双射(set)】
Some operations of MATLAB array