I want to test a native app on a real ios device. For now i have installed xcode 8.3, appium server 1.6.4. And i am using mac OS 10.12. i have included webdriver, java client jars on eclipse.
public class appiumtest {
public static void main(String[] args) throws MalformedURLException {
WebDriver driver;
DesiredCapabilities capabilities= new DesiredCapabilities();
capabilities.setCapability("deviceName", "Nisha iphone");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "ios");
capabilities.setCapability(CapabilityType.VERSION, "10.2");
capabilities.setCapability("platformName", "ios");
capabilities.setCapability("udid", "9ded1b716dd992f715f7b673ff6fd1ce7606860f");
capabilities.setCapability("appPackage", "xxx");
capabilities.setCapability("appActivity", "xxx");
capabilities.setCapability("appWaitActivity", "xxx");
driver=new RemoteWebDriver(new URL("http://ift.tt/1eWSHgW"), capabilities);
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
WebDriverWait wait = new WebDriverWait(driver, 50);
}
Thats my code. And i get this error :Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{browserName=ios, platformName=ios, udid=9ded1b716dd992f715f7b673ff6fd1ce7606860f, deviceName=Nisha iphone, version=10.2}], required capabilities = Capabilities [{}] Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800'
Can i know the exact steps for setting up appium on mac for testing ios applications.
Aucun commentaire:
Enregistrer un commentaire