Skip to content

How can I set an iOS device as "connected" in Device Farm?

0

To test my iOS app, I use a utility that requires the device to be in a "connected" state. The state of the Device Farm device I want to test my app on is "available (paired)", which I confirmed by running xcrun devicectl list devices in my test spec. How can I put the device in a "connected" state rather than a "paired" state?

asked 10 months ago197 views

1 Answer
0

AWS Device Farm doesn't provide a direct mechanism to change the device state from "paired" to "connected" as these states are managed by the underlying iOS device management system.

For iOS testing in Device Farm, you have a few options:

  1. For Appium tests on iOS devices, Device Farm uses WebDriverAgent which must be signed to be installed on iOS devices. Device Farm provides pre-signed versions of WebDriverAgent that are available during custom test environment runs. You can select a compatible WebDriverAgent version in your test spec file that works with your XCTestUI Driver version.

  2. If you're using XCTest UI framework, you can upload your iOS app (.ipa file) and test package (.ipa or .zip file) through the Device Farm console by creating a run, selecting iOS app as the run type, and choosing XCTest UI as the test framework.

  3. You can also use network profiles to simulate different network conditions during your test runs if that's relevant to your testing needs.

If your utility specifically requires a "connected" state rather than "paired," you might need to adapt your testing approach to work within Device Farm's environment or contact AWS support for specific guidance on your use case.
Sources
Integrating XCTest UI for iOS with Device Farm - AWS Device Farm
Automatically run Appium tests in Device Farm - AWS Device Farm
Simulating network connections and conditions for your AWS Device Farm runs - AWS Device Farm

answered 10 months ago

EXPERT

reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.