CrashMonkey4IOS App测试

下载地址:https://github.com/vigossjjj/CrashMonkey4IOS

根据下载地址里面的说明安装一下,以下进行配置

1.进入CrashMonkey4IOS-master/lib/ui-auto-monkey

2.打开custom.js

monkey.config.numberOfEvents //点击次数,可以配置高点

monkey.config.delayBetweenEvents //点击频率时间间隔

monkey.config.eventWeight

lock //锁屏 设为0不锁屏

pinchClose //缩小 设为0  需要设为1

pinchOpen //放大 设为0  需要设为1

shake //震动 设为0 需要设为1

3.进入CrashMonkey4IOS-master/custom_cfg,打开custom.js

进行一样的设置

4.进入CrashMonkey4IOS-master/bin,运行

./smart_monkey -w F9C592C5-434E-449B-A82F-F8084BE2427B -a XWMerchant.app

-w 后面喂模拟器或真机的BundleId,可以从Xcode的Windows->Device->identifier中获取

-a 为应用名称 模拟器上的写名字.app就行,真机上的需要写Bundle Identifier.app

原文地址:https://www.cnblogs.com/yyzanll/p/5040985.html