How to setup 1 Mac with Multiple iOS devices?


#1

I want to have a dedicated Mac that can run through tests for all of my iOS devices. Currently I have to switch devices but I want to have all of my iOS devices plugged in and I want the automation to run through each device without any manual intervention. Does anyone have a solution for this?


#2

You can buy multi port USB hub to achieve your objectives


#3

Hey @VikramVI , thanks for the reply. Unfortunately, a hub is not enough. I already have a hub and I’m still experiencing the same issue.
This issue is that after 1 connected device runs a test then the same connected device runs the same test instead of a different device running the test

Did you ever find a way to run iOS automation on devices sequentially? Maybe having the iOS devices connected through wifi?


#4

You need to use “Selenium Grid” to distribute test cases on available iOS devices.

Refer to below repo


#5

@VikramVI the article says it’s for parallel execution but I’m looking for not parallel execution. I’m looking for sequential execution. Any ideas on sequential execution?


#6

Sequential execution; you mean for compatibility testing ? Run same scripts on multiple devices with same or different os version ?


#7

Yeah for comparability testing. Multiple devices (os 10 and 11) with same Mac OS version (high Sierra)


#8

I could get it working as below

I’m looking for solution with JUnit, as I use open source framework Serenity and till now didn’t find any solution to run same set of test cases on multiple connected devices.


#9

@Telpjmal Please check this https://github.com/saikrishna321/AppiumTestDistribution