由於將設備和xCode更新爲iOS 10和Xcode 8,我無法在真實設備上成功設置Appium測試。但是,我在模擬器上正常工作。下面是我的功能設置:無法在真實設備上運行iOS 10上的Appium測試
DesiredCapabilities cap = new DesiredCapabilities();
File f = new File("/Path/App.ipa");
cap.setCapability(MobileCapabilityType.APPIUM_VERSION, "1.6.0");
cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.1.1");
cap.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6 (Model MG472B/A)");
cap.setCapability(MobileCapabilityType.UDID, "20a548dc87a87ecddf7ab3975a4b5f3395ac1a0");
cap.setCapability(MobileCapabilityType.APP,f.getAbsolutePath());
cap.setCapability("bundleId", "co.uk.xx");
cap.setCapability(MobileCapabilityType.AUTOMATION_NAME,"XCUITest");
cap.setCapability("noReset", "true");
try {
driver = new IOSDriver<WebElement>(new URL("http://127.0.0.1:4723/wd/hub"), cap);
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
我面臨着以下錯誤:
「在處理命令時出現未知的服務器端錯誤。原始錯誤:未知設備或模擬器UDID:'xx'。
Appium登錄通過鏈接https://gist.github.com/dodigital/ee5944f31b34749edf3d1c57146594e7
請檢查https://www.youtube.com/watch?v=ySglJIrDVMQ – Manidroid
@Manidroid謝謝你的建議。我遵循了視頻中的說明並構建了WebDriverAgent項目,但仍無法在Real設備上運行測試。上面提到的錯誤仍然存在 – DrPatience
post full epsium日誌 – Manidroid