学习笔记01-iOS端自动化环境搭建
一、背景介绍
1、iOS端自动化运行,安装facebook的一个开源框架,地址:https://github.com/appium/WebDriverAgent
2、需要的东西:Mac、iPhone、Mac安装Xcode、iPhone安装facebook的一个开源框架wda、Xcode 个人开发者账号
二、安装步骤
1、下载最新版本代码:https://github.com/appium/WebDriverAgent

2、打开Xcode,clone上述中的地址代码,步骤见下图





3、选择自己的免费申请的开发者账号,根据图例,再team 处选择自己的账号

4、修改下 WebDriverAgent 的 BundleID,见图例,可以在后面加上自己的专属后缀,确保和其他人不会重复,比如改成com.facebook.WebDriverAgentRunner.mydemotest(这里参考了 macaca 的一篇文章 https://testerhome.com/topics/8085 )

5、选择自己的调试设备Product->Destination->自己的iPhone,然后Product->Scheme 选择 WebDriverAgentRunner,最后运行 Product -> Test,手机即可展示安装的app
6、进入手机设置->通用-> 设备管理 ->开发者应用-> 然后点击信任,再次运行 Product -> Test即可
参考文档:
https://testerhome.com/topics/7220
https://crifan.github.io/ios_automation_facebook_wda/website/setup_environment/note_common_qa/xcode_build_webdriveragent_xcodeproj.html