Making iOS test with Appium, I would like to know if there any way to automatically test all plateform version and devices when I run a test.
Today I have to be compatible with iOS7+ and all size of iPhone and iPad. For now, I can only make a test to a platform version and a specific device at a time. I already try to create a “loop” for all available platform and version, but when a test fails, all next will fail too.
I hope have something like giving all platform versions and devices to test directly into the driver capabilities.
you can do it using e.g. testNG + DataGenerator assertion.
each test will be run on device given by DataGenerator and will report it result independently.
I already started using saucelab.com, but it seems to be the same: I have to create capabilities for my driver first, and didn’t find yet a setup to automatically test all devices.
Amazon AWS is really impressive for that, I already tried that that too but the price becomes expensive for massive test (almost 10$ / device / hour after 250 free minutes), but SauceLab stays cheaper and probably easier to use.
desiredCapabilities.setBrowserName(System.getenv("SELENIUM_BROWSER"));
desiredCapabilities.setVersion(System.getenv("SELENIUM_VERSION"));
desiredCapabilities.setCapability(CapabilityType.PLATFORM, System.getenv("SELENIUM_PLATFORM"));
...```
I'm pretty sure I can do same for my Appium test and specify devices and platform versions I want to use.
Hope it can help someone else.