Table of Contents |
---|
You can use an android emulator to help you develop your GDSL tests. It is usefull if you do not have a real device or if you want to test on a device with the same resolution as a device on the Test Bench. Do not use emulator if you want measures, the metrics (energy, data …) are not available.
...
Android GDSL functions: https://dsl.greenspector.com/
How to use uiautomatorviewer to get elements of a view (by id, text, class or description) to write GDSL test: How to get Get elements of a view (by id, text, class or description) to write GDSL test (AndroidUIAutomatorViewer)
2. Use an android emulator without Greenspector tools
...
Open the configuration file of your emulator. Replace [device_id] by the id of your device.
On Linux and macOS:
$HOME/.android/avd/[device_id]/config.ini
On Windows:
C:\Users\[username]\.android\avd\[device_id]\config.ini
Make the following changes:
PlayStore.enabled: change from “false” to “true”
image.sysdir.1: change “google_apis” to “google_apis_playstore”
tag.display: change “Google APIs” to “Google Play”
tag.id: change “google_apis” to “google_apis_playstore”
Save your changes
On the Device Manager window, select the three dots button and click on “Wipe Data”. It will load the new configuration.
We expect the following error message:
...