Run below the same scripts in Eclipse and Command line in windows
public void setUpOS() throws Exception {
File app = new File(new File(new File(System.getProperty(“user.dir”)), “apps”), appName);
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, device_name);
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, automation_name);
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, OS);
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, platform_version);
capabilities.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());
capabilities.setCapability(“unicodeKeyboard”, true);
capabilities.setCapability(“resetKeyboard”, true);
if(OS == "Android"){
capabilities.setCapability(MobileCapabilityType.APP_PACKAGE, app_package);
capabilities.setCapability(MobileCapabilityType.APP_ACTIVITY, app_activity);
capabilities.setCapability(MobileCapabilityType.APP_WAIT_ACTIVITY, appWaitActivity);
driver = new SelendroidDriver<WebElement>(new URL(app_url), capabilities);
}else{
//driver = new IOSDriver<MobileElement>(new URL(app_url), capabilities);
}
}
Run by command line at “driver = new SelendroidDriver(new URL(app_url), capabilities);”, always shows “Configuration Failures: 1, Skips: 3”, I have no ideal of this, could you please give me some suggestions, thanks a lots.