柚子快报激活码778899分享:MAC搭建ios自动化测试环境 - 配置WebDriverAgent
柚子快报激活码778899分享:MAC搭建ios自动化测试环境
1.macOS相关库安装
Mac电脑如何快速安装Homebrew /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
libimobiledevice > brew install libimobiledevice 使用本机与苹果iOS设备的服务进行通信的库。
ideviceinstaller brew install ideviceinstaller 获取设备udid、安装app、卸载app、获取bundleid
carthage > brew install carthage 第三方库管理工具。
ios-deploy > brew install ios-deploy ios-deploy 不依赖于XCODE,进行安装和调试IOS应用程序。
node & npm > brew install node > brew install npm appium-doctor npm install -g appium-doctor 验证appium环境 > appium-doctor
2.XCode
Xcode 是iOS开发环境,可以到app store 下载安装。
3.配置WebDriverAgent
1)打开xcode,并且在xcode路径中打开WebDriverAgent, 其路径如下所示,下载xcode后就会有这个路径,有可能这个路径是在/user/jeff.xie/document路径下
/Users/jeff.xie/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgentRunner
https://blog.csdn.net/yy19890521/article/details/102548461
创建账户如下图所示,并配置相关信息
配置完成后,需要进行build
build之后需要执行product > Test
最后打appium-desktop,启动appium server,然后在Appium Inspector配置手机信息,启动后就可以开始定位元素
查看手机的udid,查看android模拟器的name
查看 iOS udi命令: xcrun simctl list | grep Boo 拼多多帮助力入口
柚子快报激活码778899分享:MAC搭建ios自动化测试环境