AirtestProject / iOS-Tagent

iOS support agent for automation
http://airtest.netease.com/
Other
642 stars 178 forks source link

ios-Tagent 是否可以跟appium兼容 #114

Open rofleed opened 4 years ago

rofleed commented 4 years ago

目前ios-tagent提供的start_app功能比较有限,比如wda相关的session操作,支持传参url,设置session启动属性,现在在脚本中想直接用appium-client操作设备,是否会冲突?

rofleed commented 4 years ago

目前一些api比如clear_app,install 也不支持,是否有方案可以采用?

EraChen233 commented 4 years ago

目前还没有可采用的方案呢,我们会尽快排期把这些开发安排上的

Benjamin-Ye commented 4 years ago

Appium and Airtest可以兼容,可以切换控制,已经部署验证成功。 Apium desktop and server : v1.15.1 Airtest: iOSTagnet github最新。 xcode:11.3 IOS:13.3

部署步骤: 1)现部署Appium desktop,且达到可以控制IOS手机。这时候手机的监听端口8100,手机会安装Appium的WebdriverAgent. 具体参考官网 http://appium.io/docs/en/drivers/ios-xcuitest-real-devices/ 2)部署Airtest的xcode iOSTagent, Xcode 会检测8100已被占用,自动更新到8101端口。 打开Airtest IDE 连接 http://127.0.0.1:8101成功,这时候手机会安装Airtest Webdriveragent(手机会有两个Webdriveragent) 3)模拟一个场景从appium desktop打开某个setting, Airtest IDE关闭这个setting,成功。