Capturing an Android interface with the Interface Viewer

The Interface Viewer looks for the presence of an available Android device. If found, it displays the elements of its graphical user interface.

Important:
Android automation is only supported on Windows.

Ensure that the following requirements are met:

Do the following to capture interface entities/elements of the re-signed application running on your Android device:

  1. Launch the Interface Viewer.

  2. The Interface Viewer generally attempts to restore the last viewing session (whether with a device or host machine) it was used for. If it does not automatically display the GUI environment of the Android device you wish to view, select View > Switch Device to switch to it.

    It should be noted that any Android emulator that is running on the host PC runs as an application of that PC’s Windows system. Therefore, when the Interface Viewer is displaying the host PC’s environment, it includes a node representing the emulator. However, any controls accessible through this node would be only those of the Windows application running the emulator. The actual Android interface elements of the emulator’s AUT are not accessible until you switch the Interface Viewer to scan and present the Android environment.

    At this point, the Interface Viewer scans the host system for all available mobile devices. If the Interface Viewer finds only one mobile device, it displays a GUI tree of the re-signed application for that device.

  3. If more than one mobile device is found, the Interface Viewer displays the Select device dialog box to allow you choose which mobile device to automate. In this dialog box, select a desired device, then click the Open button.

    The Interface Viewer displays the associated GUI tree (the GUI environment for the AUT on the Android device).

    Note:
    Only one AUT can be automated at a time. Therefore only one application’s UI environment is displayed.

The processes for mapping Android windows and GUI controls to interface entities and elements, naming items using TA name, and saving interface definitions, are essentially the same as described in Capturing interface definitions and Naming interface elements.

Note:

Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400