Launching Android Gateway
On Windows, open the system tray at the bottom of the screen. Right-click the Android Gateway icon, then select Open Android Gateway.
On Mac, click the Android Gateway icon in the menu bar at the top of the screen, then select Open Android Gateway.
Android Gateway opens in a new tab in your default web browser at http://localhost:32000/dashboard. Android Gateway launches your default browser if it isn't already open.
Connecting to Devices
Establishing connections to Android devices in Android Gateway works the same way for all operating systems.
- Attach an Android device via USB to the machine where Android Gateway is running. When Android Gateway detects the device, the device's serial number and ports in use display in the UI.
- The Status displays as Off unless you have Autostart selected. If you don't have Autostart selected, click the play button () to start automation.
- In Eggplant Functional, create a Connection List item for the Android device. See Using the Eggplant Functional Connection List for more information.
- Use the Connection List in Eggplant Functional to open the connection to your Android device.
When you've established a connection, the Eggplant Functional Viewer window displays the Android device screen. You can now capture images on the device and write scripts in Eggplant Functional, using the Android device as you would any other system under test (SUT).
You can connect to multiple Android devices simultaneously by following the above steps and choosing a different device from the list of detected devices for subsequent connections.
To terminate a connection, click the stop button in the Android Gateway UI.
You can make connections in Eggplant Functional with Android Gateway both from your local machine to a locally attached device as well as to a remote machine that has devices attached. The instructions above work for making both types of connections. To make a remote connection, you must ensure that Eggplant Functional is able to reach the IP address where Android Gateway is running.
From the main Android Gateway UI, click the three vertical dots, then select Console from the context menu to open the log for a connected device.