Appium Mobile config code

AndroidDriver driver;
DesiredCapabilities capabilities;

capabilities = new DesiredCapabilities();
URL url = new URL(“http://localhost:4723/wd/hub”);

capabilities.setCapability(“deviceName”, “Lenovo K5 Note”);
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“platformVersion”, “6.0”);
capabilities.setCapability(“noReset”, true);
capabilities.setCapability(“app”, “apps/Intelliwiz.apk”);
capabilities.setCapability(“appPackage”, “com.youtility.intelliwiz.ui”);
capabilities.setCapability(“appActivity”, “.IntelliwizActivity”);

driver = new AndroidDriver(url, capabilities);

//File classpathRoot = new File(System.getProperty(“user.dir”));
//File appDir = new File(classpathRoot, “/apps”);
//File app = new File(appDir, “/Intelliwiz.apk”);

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s