Ios IPhone real device automation环境设置

Ios IPhone real device automation环境设置,ios,iphone,selenium-webdriver,ios-ui-automation,appium-ios,Ios,Iphone,Selenium Webdriver,Ios Ui Automation,Appium Ios,我正在尝试使用Java和Selenium编写脚本。使用Appium工具实现自动化。我在模拟器上完成了web应用程序的测试。我想知道是否可以通过Wifi将真正的iPhone设备连接到MAC来运行测试脚本。如果是,xcode是否能够检测设备?如果没有,是否有任何软件可以帮助我实现这一点我知道有使用USB连接的选项,但我正在处理远程MAC计算机。现在,如果我正确理解您的问题,您希望在实际设备上运行测试,而无需实际连接到MAC **Answers:** 1. There is no w

我正在尝试使用Java和Selenium编写脚本。使用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.