Appium is awesome @ https://www.npmjs.com/package/appium and so it needs few buddy companion's and this package
oneclickappiumis one of them.
This package solves the painpoint of running appium in parallel for multiple devices. You can just connect a device (ios or Android) by USB or boot an iOS Simulator, or else do both (attachh physical device(s) and boot iOS simulator(s).
npm install oneclickappium
xcrun simctl list,
You can test it first by connecting a device or booting a simulator and run
npm test oneclickappium
What this does, stepwise
- check's : No existing appium server instance are running, if that is the case, we will kill them all to make things clear like a blue sky - Then we will look for all connected devices and booted iOS SIMULATORS so lets start counting ... - Then Start appium server(s) per each device in background - Execute test's on each device (this is a `mvn` command you would like to run) - Once Run is DONE, kill appium server and optionally all `java` processe's to bring back the sky to blue