028-86922220

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

(二)smart_monkeyforios测试工具包.note

smart_monkey for ios

崇州ssl适用于网站、小程序/APP、API接口等需要进行数据传输应用场景,ssl证书未来市场广阔!成为成都创新互联公司的ssl证书销售渠道,可以享受市场价格4-6折优惠!如果有意向欢迎电话联系或者加微信:18980820575(备注:SSL证书合作)期待与您的合作!

工具包原文:https://testerhome.com/topics/2523

前提:

真机或模拟器上安装appdebug包;

简要操作步骤:

1. mac上安装homebrew,只需要一条命令行,从官网获取:http://brew.sh/ 

2. 安装brew成功后,执行以下三条命令

  Step 1. brew install libimobiledevice

 Step 2. brew install -HEAD ideviceinstaller

 Step 3. brew install p_w_picpathmagick

3. 以上工具包全部安装成功后,即可 开始运行smart_monkey; (如果是真机运行,需要打开权限,手机设置中“开发者”中启用“EnableUIAutomation”选项)

执行命令

smart_monkey -a ${App_BunnelID}

参数说明:

//遇到问题可查阅:https://github.com/vigossjjj/CrashMonkey4IOS/blob/master/Troubleshooting.md

4. monkey运行成功后 生成的报表位置:/user/smart_monkey_result

生成的结果包含有:运行时截图png列表、resutl.html 、系统日志、运行时完全日志等

云笔记 实践 得到结果如下:

1. monkey 运行完成后,结果生成 为 report_日期 格式,存在本地,下图为一个report中的内容;

结果中包含这一次monkey运行中的所有截屏和日志和最终结果统计;

(二)smart_monkey for ios 测试工具包.note

2. 图1中的result.html为完全的结果统计,如果有失败的情况,会在里面列表;

下图为云笔记 未出现crash的结果统计,图中的3个tab可以点击查看具体日志;

(二)smart_monkey for ios 测试工具包.note

3. 整个运行过程中的monkey操作记录日志,在uiautomation.html 里

(二)smart_monkey for ios 测试工具包.note

使用smart_monkey的好处:结果统计明确,生成报表格式;

缺点还在研究中。。。

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


分享题目:(二)smart_monkeyforios测试工具包.note
地址分享:http://www.tsicrk.com/article/pjjepp.html

其他资讯

让你的专属顾问为你服务

4.2919s