Skip to content

Improving Network Stability

Joshua Moody edited this page Apr 2, 2015 · 2 revisions

Share Your Wired Connection

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.

1. Open System Preferences : Sharing

2015-04-02_11-23-15

===

2. Share your Wired Ethernet via Wi-Fi

2015-04-02_11-21-16

===

3. Configure your Wi-Fi

2015-04-02_11-21-40

===

4. Turn on Internet Sharing

2015-04-02_11-21-40

===

You should now see your computer's Wi-Fi indicator has changed to 2015-04-02_11-22-50. Connect your devices to this new network, make a note of the new IPs, and start testing.

Tip: name your devices

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
Clone this wiki locally