Test against multiple iOS devices simultaneously

Test against multiple iOS devices simultaneously

Run your Squish for iOS test suite against multiple devices at the same time from a single computer

  • Map the Devices and Apps
  • Modify script to get Mapped AUT from environment variable
  • Execute squishrunner once for each mapped AUT to test


Map the Devices to use: Add Attachable AUT
From IDE
  1. Select Edit > Server Settings > Manage AUTs
  2. Select Attachable AUTs and click Add…
  3. Enter a name for one of the device and app combinations in the Name box
  4. Enter the IP Address of the device in the Host box
  5. Enter the port on which the app is listening in the Port box
  6. Click Add
  7. Repeat steps 2 through 6 for each additional device

OR

From Command line

From Squish’s bin directory execute the following for each device and app combination:
squishserver --config addAttachableAUT <DeviceAppName> <IPAddress>:<Port>

Modify script to get Mapped AUT from environment variable
var device = OS.getenv("TEST_DEVICE");
attachToApplication(device);


Execute squishrunner once for each mapped AUT to test

With the App launched on each device, execute the following from Squish’s bin directory:
TEST_DEVICE=<attachableAUT1> ./squishrunner --testsuite <pathToYourTestsuite><br />

Each time the command executes, the tests run on the specified device, allowing tests to run in parallel.

Related reading

Automated Batch Testing
How to run simultaneous tests against multiple devices from a single computer
Request your free 30 day Squish evaluation
Learn more about Squish
Other Squish Resources (videos, tech articles, user communities and more)