Automation Testing on an Emulator
An emulator, such as an Android Virtual Device (AVD), is software or hardware that enables a computer system (for example, a Windows operating system) to behave like another computer system (for example, an Android platform). It provides a virtual environment of another system.
To run automation testing on an emulator on Microsoft Windows
Start the AVD Manager as follows:
Navigate to and open the SDK folder. For example: C:\SDK
Double-click AVD Manager.exe to start the AVD Manager.
The AVD Manager is used to create virtual Android devices.
Using AVD Manager, create an android virtual device (emulator) as follows:
Go to the Device Definitions tab, click Create Device, click the Android Virtual Device, and then click Create.
The Create new Android Virtual Device window appears
Enter values for the fields shown in the following table.
Note: The values shown in the following table are example values for creating a virtual device using Galaxy Tab S 10.5. Values typically vary depending on the device you want to emulate. When creating a virtual device, use the following specifications:Screen Size : 10.5 inches
Resolution : 2560 x 1600
Field Description Sample Value AVD Name
Name of the Android virtual device.
AVD_for_Samsung_GalaxyTab_S
Device
Name of the Android device.
Samsung_Galaxy_Tab_S
Target
Name of the target Android device.
Android 5.0.1 - API [Level2]
CPU/AB1
The application binary interface.
ARM (armeabi-v7a)
Select the device and then click Start.
Click Launch.
The Emulator Starts.
Update the XML file by setting the following parameters:
APPLICATION_TYPE= Mobile_Chrome - Automation on Chrome Browser
APPLICATION_TYPE= Mobile_Native Browser - Automation on AVD Native Browser.
You must start the emulator manually before triggering a run since emulators take more time to start.
- APPLICATION_TYPE=Mobile_SM_Android - Automation on Siebel MAF Application