- Clone this repository with
git clone https://github.com/moinuddin14/AppiumAndroidParallelDemo.gitand ensure all the dependencies are downloaded (as mentioned in pom.xml) cd AppiumAndroidParallelDemo- Download Android Studio from this here
- Follow the steps mentioned here to setup Andriod Studio with Android Command line tools like adb, aapt etc.,
- Start appium server from command line/terminal window with this command
appium --address 127.0.0.1 --port 4727and press enter - Start any two emulators, follow the steps mentioned in this tutorial for setting up Android Emulators, you can also use Genymotion or other Emulator providers
- Now, right click on the
testng.xmlfile and click on Run - You should now see the apps running in parallel
Note: You can download any sample .apk from this location and update the path in this capability paramter capabilities.setCapability(MobileCapabilityType.APP, "/Users/moin/Downloads/demo.apk");