To run Android tests with TestExecute on Android-x86 virtual machines, you need to prepare these virtual machine for testing. This topic provides detailed information on preparatory actions.
General Idea
TestExecute works with Android devices and virtual machines via Android Debug Bridge (ADB) which is part of the Android SDK. You need to download and install this SDK on your TestExecute computer. Then, you need to connect the virtual machine to Android Debug Bridge.
The main goal of these actions is to make Android Debug Bridge “see” your Android virtual machine.
Preparatory Steps
1. Emulate Network Adapter
To test applications running on Android virtual machines, these virtual machines must emulate a network adapter and be available via the network to your TestExecute computer.
For detailed information on configuring network parameters, see documentation on virtual machines you use.
2. Connect Virtual Machine to Android Debug Bridge
Important: You need to connect your Android virtual machine to the Android Debug Bridge in order for TestExecute to be able to work with this virtual machine.
To connect, you need to determine the IP address of the machine and pass it to the adb connect
command. For detailed information, see Connecting TestExecute to Android Devices.
You need to set up a connection for the virtual machine after it starts. When you have established a connection, you can use it until it is broken, that is, until the virtual machine is off, or until the ADB executable restarts, or until the user session in the operating system is over.
3. Install TestComplete Android Agent
If you are going to test your Android application as an Open Application, the TestComplete Android Agent must be installed on your device. Installation of the Android Agent is also recommended for black-box testing as it is needed for simulating keystrokes and it simplifies testing geolocation activities.
TestExecute installs the Android Agent on your device automatically when you first connect to it.
For information on the Agent, see the TestComplete documentation.
Other Preparatory Actions
Besides preparing Android virtual machines for testing, you also need to configure TestExecute. For detailed information on this, see Android Options Dialog.
Also, it is recommended to prepare your Android application for testing and test it as an Open Application. For complete information, see TestComplete documentation.