Install multiple apps by using Appium “otherApps” capability in for Android automation – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> Install multiple apps by using Appium “otherApps” ...

Install multiple apps by using Appium “otherApps” capability in for Android automation


Install multiple apps by using Appium "otherApps" capability in for Android automation You have to provide App or list of apps (as a JSON array) to install prior to running tests.

String appPath1 = System.getProperty("user.dir") + "amazon.apk";
String appPath2 = System.getProperty("user.dir") + "walmart.apk";
		
JsonArray jsonArray = new JsonArray();
jsonArray.add(appPath1);
jsonArray.add(appPath2);
System.out.println(jsonArray.toString());
capabilities.setCapability("otherApps", jsonArray.toString());

Leave a Reply

Your email address will not be published. Required fields are marked *