如何对APP进行Monkey测试?

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 16:41   1970   0

我们需要对APP进行monkey测试,手动太麻烦了,为啥我们不让它自动运行呢?这里教你几招诀窍!

插件安装

1、添加插件:Android Emulator Plugin,会自动下载如下插件:

2、安装成功后,增加构建步骤中多出如下选项:

配置模拟器

前提:设置android SDK root

1、此处有三种方式:Jenkins配置新的模拟器、jenkins添加已有的模拟器、使用真机

jenkins添加已有的模拟器:

Jenkins配置新的模拟器:

job-构建环境中选择Run an Android emulator during build配置模拟器

2、在增加构建操作中添加“Run Android monkey tester”

进行monkey测试

常见问题:

1、无法执行adb命令

解决:Jenkins服务里面配置高级管理员登录;

2、模拟器报错

Starting emulator for AVD ‘test001’

emulator: ERROR: x86 emulation currently requires hardware acceleration!

Please ensure Intel HAXM is properly installed and usable.

CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run ‘bcdedit /set hypervisorlaunchtype off’, reboot.

解决:在SDK的Extras部分,勾选安装Intel X86 Emulator Accelerator(HAXM Installer)

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP