Running multiple devices with calabash ios

2019-09-03 06:55发布

问题:

Have been searching for a workaround to run multiple devices with calabash ios. AFAIK, calabash ios uses port 37265 and instrument to load and interact with the app. Instrument can also only run once at a time. I have read somewhere that we might need to use virtual machine, is that true? Is there any other way to achieve this? Thanks a bunch.

回答1:

From documentation I have only read the instructions on how to do it via WIFI. Would that be an option for you?

If so please refer to https://github.com/calabash/calabash-ios/wiki/07-Testing-on-physical-iDevices



回答2:

I have tried running Calabash over virtual machines, but I found the networking to be an issue since all VMs need to be on the same network. I was using one of my Macs wifi as an access point and for some reason, the devices kept losing their connection. I switched to using separate machines, and a router for my access point, and figured out how to build an IPA with the directions provided by the Calabash devs for testing on physical devices, then use ideviceinstaller (installed using homebrew) and able to test on multiple devices using the net/ssh gem to connect to them. There's a few environment variables to configure per session but its pretty solid once you get it going.



标签: ios calabash