需要用到工具:
1、GUI 工具,
Airtest
; https://airtest.netease.com/index.html【下载地址】>https://airtest.doc.io.netease.com/en/【文档地址】
2、iOS 代码调试工具,Xcode
;
3、iOS 设备安装工具,WebDriverAgent
,源码,https://github.com/appium/WebDriverAgent【github】
备注,如果不会 Xcode 编辑调试WebDriverAgent
代码的人员,可以找相关开发,要一个 WDA.ipa 安装包即可
WDA.ipa 安装包操作流程【】
1、WebDriverAgent
安装调试
第一步 配置WebDriverAgent
项目
![](https://img.haomeiwen.com/i3159832/3375cd7f997ade3b.png)
第二步 选择 WebDriverAgentRunner
项目运行到手机上
![](https://img.haomeiwen.com/i3159832/4f99b55d8978e8cc.png)
![](https://img.haomeiwen.com/i3159832/299f27c00cb1e422.png)
2、安装 Airtest
工具
3、Airtest
链接 iOS 设备 Airtest操作文档
![](https://img.haomeiwen.com/i3159832/30f90f58e30690be.png)
- 注意点:未知原因链接不是设备,并检查不到设备可以尝试进行如下命令在
终端
进行
1:brew install libimobiledevice
brew install libimobiledevice
报错
报错
根据命令进行执行brew cleanup libimobiledevice
根据命令进行执行brew reinstall libimobiledevice
报错
根据命令进行执行export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
根据命令进行执行brew reinstall libimobiledevice
成功实力
整个流程示例图
整个流程示例图
4、简单使用 Airtest
进行 UI 流程测试
1、简单脚本操作命令、
生成脚本
![](https://img.haomeiwen.com/i3159832/240a27a5f2ed8b2a.png)
生成脚本示例
![](https://img.haomeiwen.com/i3159832/97866d566434e972.png)
网友评论