栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

iOS自动化测试环境搭建总结

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

iOS自动化测试环境搭建总结

1.关于iOS真机和模拟器自动化环境搭建

参考博文:

Appium+Python3+iOS真机环境搭建

iOS自动化测试:mac下iOS10 appium测试环境的搭建

IOS + Appium自动化环境搭建教程

mac系统下搭建ios自动化测试环境(appium+python)

iOS自动化环境搭建(超详细) - 虫师 - 博客园

2.终端输入xcodebuild -version提示xcrun: error: active developer path ("/Users/ceshi/Desktop/Xcode.app/Contents/Developer") does not exist

详细提示:

xcrun: error: active developer path ("/Users/ceshi/Desktop/Xcode.app/Contents/Developer") does not exist

Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.

See `man xcode-select` for more details.

解决方案:

在终端执行命令sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

2.执行appium-doctor --ios提示

WARN AppiumDoctor ✖ opencv4nodejs cannot be found.

WARN AppiumDoctor ✖ ffmpeg cannot be found

WARN AppiumDoctor ✖ mjpeg-consumer cannot be found.

WARN AppiumDoctor ✖ set-simulator-location is not installed

WARN AppiumDoctor ✖ idb and idb_companion are not installed

WARN AppiumDoctor ✖ applesimutils cannot be found

截图:

 解决方案:

参考博客:https://blog.csdn.net/u012540058/article/details/109232044

注意事项:

1)如果遇到npm i -g opencv4nodejs安装失败,则参考如下link:

https://www.cxybb.com/article/u012540058/109231687

2)如果遇到idb安装失败,则在终端执行sudo pip3.9 install fb-idb -v

3.Xcode模拟器打开应用闪退

解决方案:

安装包问题,自行build包

4.终端提示找不到WebDriverAgent目录

详细提示:

-bash: cd: /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent: No such file or directory

解决方案:

修改路径(appium1.18版本后WebDriverAgent有所变化)

/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent

5.执行./Scripts/bootstrap.sh提示npm ERR! code ERESOLVE

解决方案:

使用新版Appium 1.21.0版本即可解决

6.关于iOS真机配置WebDriverAgent

参考博文:https://blog.csdn.net/qq_37733396/article/details/120568966

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/836785.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号