软件测试/测试开发丨iOS自动化真机测试验证环境过程中常见问题

本章节主要讲解 iOS 自动化真机配置以及在 iOS 真机执行自动化时常见问题与解决方法 。
真机使用的Capability
与模拟器不同,真机测试需要如下的 Capability
方式一:设置 App 路径,启动 App(自动安装 App)
{&
{&
使用Appium Desktop验证环境
以上步骤完成后 , 出现下图表示真机环境配置成功
常见问题
问题一
Failed to register bundle identifier
原因:bundle identifier 有重复解决方法:修改为唯一的即可
问题二
执行 instruments -s devices 命令报错:Hogwarts $ instruments -s devices xcode-select: error: tool &
原因:安装了 Xcode,但是不在系统默认的目录下 。解决方法:需要把 Xcode 的路径修改为你安装的位置,可以在终端里面用命令修改,执行命令 sudo xcode-select –switch /Applications/Xcode.app
问题三
运行脚本过程中,手动停止脚本时,偶尔会报错 Showing All Messages WebDriverAgentRunner-Runner.app (3413) encountered an error (Early unexpected exit, operation never finished bootstrapping – no restart will be attempted. (Underlying error: The test runner exited with code 74 before checking in.))
解决方法:重启手机或者拔掉 IOS 数据线 , 重新连接电脑
问题四
note: Using new build systemnote: Building targets in parallelnote: Planning buildnote: Constructing build descriptionerror: No signing certificate &
Assertions: System: Early unexpected exit, operation never finished bootstrapping – no restart will beattempted. (Underlying Error: The test runner exited with code 74 before checking in. If you believe thiserror represents a bug, please attach the result bundle at/Users/dzkair/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2020.11.26_10-47-38-+0800.xcresult)解决方法:重新插拔手机即可
【软件测试/测试开发丨iOS自动化真机测试验证环境过程中常见问题】以上就是朝夕生活(www.30zx.com)关于“软件测试/测试开发丨iOS自动化真机测试验证环境过程中常见问题”的详细内容,希望对大家有所帮助!

猜你喜欢