iOS ATX环境

ATX 基于 WDA(WebDriverAgent)实现iOS自动化。

获取WDA项目(按教程即可):https://github.com/facebook/WebDriverAgent

WDA环境搭建遇到的问题:

1、新的mac设备,WDA环境需要  Carthage、npm支持,使用brew安装即可

2、执行 ./Scripts/bootstrap.sh时出现异常:

Fetching Inspector dependencies...
npm WARN [email protected] requires a peer of ajv@>=5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.

npm WARN saveError ENOENT: no such file or directory, open '/Users/tech360che.com/TEST/WebDriverAgent/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/tech360che.com/TEST/WebDriverAgent/package.json'
呵呵  19:54:27
npm WARN saveError ENOENT: no such file or directory, open '/Users/tech360che.com/TEST/WebDriverAgent/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/tech360che.com/TEST/WebDriverAgent/package.json'

初始化npm 在WDA根目录生成 package.json 命令:npm init 之后一路回车即可

3、当运行成功后,如果通过xcode给的IP+/status无法访问时,则参考:https://testerhome.com/topics/7220

# 使用--HEAD安装最新版本
$ brew install libimobiledevice --HEAD
$ iproxy 8100 8100

猜你喜欢

转载自blog.csdn.net/qq_28190039/article/details/86134791