Skip to main content
Version: 26.2

Connecting to Mobile Devices

Overview

Eggplant Test applications support multiple methods for testing Android and iOS mobile devices. The best method to use depends on your particular use case. To test mobile devices, you may:

  • Access physical or virtual devices hosted by Sauce Labs
  • Access physical or emulated devices that you or your organization own

Testing mobile devices through Sauce Labs may be best for you if you don't want to incur the burden of purchasing and maintaining mobile devices. Using Sauce Labs also gives you access to a large selection of mobile devices and mobile device operating systems. It essentially gives you access to a comprehensive mobile device compatibility lab. For details on accessing mobile devices through Sauce Labs, please see Connecting to Sauce Labs Devices and Browsers.

Testing devices that your organization owns may be best for you if network restrictions and/or cost prevent you from accessing Sauce Labs' cloud-based services. In some cases, you also may need to perform certain low-level device operations which are not permitted on Sauce Labs. Regardless of which option you choose, Eggplant Test will make it easy for you to accomplish your testing.

Testing devices that you own is a little more complicated than the Sauce Labs use-case. How you test your devices depends on the type of the device you are testing (iOS or Android). There are shared similarities between the devices, but each device platform has its own unique requirements.

To test Android or iOS devices that you own, you can connect directly using Eggplant Test's Mobile Device Connection type, which is powered behind the scenes by Eggplant Gateway. Eggplant recommends using a Mobile Device connection for a more efficient workflow when testing your own mobile devices. For advanced assistance, refer to Mobile Device Connections in the Eggplant Gateway documentation.

Connecting to Mobile Devices

Before you attempt your first connection to a mobile device, it may be helpful for you to understand several concepts related to using mobile devices with Eggplant. Please read Working with Android Mobile Devices and/or Working with iOS Mobile Devices before setting up your first Mobile Device connection. If you are already familiar with the mobile device workflow for your mobile device, you are ready to enter the world of mobile device testing.

To create a Mobile Device connection, you may do so using the Add Connection panel in your Eggplant Test product, at the command line when you run a script, or within a script. See Managing Connections in Eggplant Test Products for more information about creating connections using each of these methods.