Skip to end of metadata
Go to start of metadata

Return to the Product Announcements and Release Notes Blog

Sauce Labs is happy to announce RDC support for Dynamic Device Allocation for XCUITest Test Runner.

XCUITest users can use the new --deviceNameQuery parameter to dynamically allocate an available device for the test run based on the defined parameters.

Usage of dynamic device allocation require an upgrade of the Test Runner to v1.3.

A few examples of using dynamic device allocation with XCUITest

 

Allocating any device:

java -jar runner.jar xcui --test <test.ipa> --app <app.ipa> --username <username> --apikey <apikey> --datacenter <datacenter>

Allocating any iPhone Plus device:

java -jar runner.jar xcui --test <test.ipa> --app <app.ipa> --username <username> --apikey <apikey> --datacenter <datacenter> --deviceNameQuery "iPhone.*Plus"

Allocating any Tablet:

java -jar runner.jar xcui --test <test.ipa> --app <app.ipa> --username <username> --apikey <apikey> --datacenter <datacenter> --tabletOnly

Allocating any iPhone Plus device running iOS 11:

java -jar runner.jar xcui --test <test.ipa> --app <app.ipa> --username <username> --apikey <apikey> --datacenter <datacenter> --deviceNameQuery "iPhone.*Plus" --platformVersion 11

Allocating any private device running iOS 11:

java -jar runner.jar xcui --test <test.ipa> --app <app.ipa> --username <username> --apikey <apikey> --datacenter <datacenter> --privateDevicesOnly --platformVersion 11

 

Learn more on RDC XCUITest here

  • No labels