-
Notifications
You must be signed in to change notification settings - Fork 369
Improving Network Stability
Local Wi-Fi routers, especially those on home networks, can be flaky. Even high-end and enterprise quality routers can perform badly if network traffic is high. If you are seeing intermittent timeouts or long wait times while testing with Calabash, you can share your computer's wired ethernet connection via Wi-Fi. If you connect your test devices to this new network, you will often see dramatic improvements in speed and reliability.
===
===
===
===
You should now see your computer's Wi-Fi indicator has changed to . Connect your devices to this new network, make a note of the new IPs, and start testing.
The Calabash iOS Server is a Bonjour web service. You can avoid the hassle of determining the device's IP address by assigning names to your devices. The names should not have spaces or characters that cannot be displayed plainly in a URL.
Suppose you have 3 devices: an iPad Mini Retina, an iPhone 4S, and an iPhone 6.
Device | Name | IP |
---|---|---|
iPad | ipad-mini | http://ipad-mini.local |
iPhone 4S | iphone4s | http://iphone4s.local |
iPhone 6 | iphone6 | http://iphone6.local |
I use planet names to name my devices; you have may seen references to them in the cucumber.yml files of example projects.
Device | Name | IP |
---|---|---|
iPad 4 | venus | http://venus.local |
iPhone 4S | neptune | http://neptune.local |
iPhone 6 | hat | http://hat.local |