HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – IPhone真实设备自动化环境设置大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_696_1@
我正在尝试使用 JavaSELEnium编写脚本.使用Appium工具实现自动化.我在模拟器上完成了测试web应用程序.我想知道是否可以通过Wifi将真正的iPhone设备连接到MAC来运行测试脚本.如果是,xcode能否检测到该设备?如果没有,是否有任何软件可以帮助我实现这一目标.我知道可以选择使用USB进行连接,但我正在处理远程MAC机器.

解决方法

现在,如果我正确理解您的问题 – 您希望在没有物理连接到MAC的情况下在真实设备上运行测试.

**Answers:**

    1. There is no way,you can run test on Real Device without physically connecTing it to Mac with an Xcode.
    2. Xcode can't detect any iPhone via wifi.
    3. There is one way to run test on iPhone without physical connection,if you want to run tests on mobile website that is Safari:
        A. **ONE TIME SETUP** You need to install iWeb Driver (app) in iPhone once via Xcode. This is a deprecated way though. If you want this,I'll upload the iWeb Driver source code on github,you can download and install further.
        B. Now before running test,you need to launch the iWeb Driver (app) manually on device,once you run this,it will flash an a URL on app.
        C. Use this url in Remote Webdriver like:

  DesiredCapabilities cap = new DesiredCapabilities();
                cap.setCapability(CapabilityType.PLATFORM,DesiredCapabilities.iphone());

WebDriver iphoneDriver = new RemoteWebDriver(new URL(iphoneIp),cap);
    and then use this driver just like other and run your tests.

大佬总结

以上是大佬教程为你收集整理的ios – IPhone真实设备自动化环境设置全部内容,希望文章能够帮你解决ios – IPhone真实设备自动化环境设置所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。