...
Follow the first part of the prerequisite (part 1.1)
Add ADB (Android Debug Bridge) to your path / environment variables:
On Linux: add the line
export PATH=$HOME/Android/Sdk/platform-tools:$PATH
in the .bashrc file and run the command "source ~/.bashrc"On Mac: add the line
export PATH=$HOME/Library/Android/sdk/platform-tools:$PATH
in the .bash_profile file and run the command "source ~/.bash_profile"On Windows: Windows start menu > Settings > System > About > Advanced settings > Environment variables > Path > Modify > Add the path
C:\Users\[username]\AppData\Local\Android\Sdk\platform-tools
Get the testrunner from https://app.greenspector.com/ in the Modules tab, and put it in a folder (for example “testrunner_files”)
Add in this folder the configuration files config.yml and job.yml, and a script with the testgb extension. An example of these files is available at the following location:
configuration files: https://app.greenspector.com/download > Test Runner: Download > “Config - Android” and “Job - Android”
testgb file: https://app.greenspector.com/download > GDSL Templates: Download (you can choose between a test file for an Android application, a website, or an iOS application)
You can find the documentation about the gdsl functions here: https://dsl.greenspector.com/
...
Check the configuration and click on “Finish”. Be careful, the configuration might be different than the one you chose. Make sure to click on “Show Advanced Settings” and check each property.
Your device is now created. You can launch it by clicking on the triangle.
...
2.2. Emulators tested
Device Name | Screen Size (inches) | Resolution | RAM | System image | Version Chrome | Computer OS |
---|---|---|---|---|---|---|
Samsung Galaxy S9 | 5,8 | 1080 x 2220 | 4 GB | Android 10.0 Google APIs | x86 | 113 | Linux |
Samsung Galaxy Tab A7 | 10,4 | 2000 x 1200 | 3 GB | Android 10.0 Google APIs | x86 | 114 | Linux |
Samsung Galaxy Tab S7 FE | 12,4 | 2560 x 1600 | 4 GB | Android 10.0 Google APIs | x86_64 | 114 | Linux |
Samsung Galaxy S10 | 6,1 | 1080 x 2280 | 8 GB | Android 11.0 Google APIs | x86 | ||
Google Pixel C | 10,2 | 2560 x 1800 | 3 GB | Android 8.1 Google APIs | x86 |
Info |
---|
|
...
Code Block | ||
---|---|---|
| ||
# For newer version of Android SDK export PATH=$HOME/Android/Sdk/emulator:$PATH # For older version of Android SDK export PATH=$HOME/Android/Sdk/tools:$PATH |
On macOS: Update ~/.bashrc or ~/.bash_profile
Code Block | ||
---|---|---|
| ||
export PATH=$HOME/Library/Android/Sdk/emulator:$PATH |
...
Launch an android emulator
Option 1: open the Device Manager window of Android Studio and click on the triangle
Option 2: start an emulator from the command line (part 2.5)
If you run the testrunner for the first time, you have to run it once without the --no-update option:
On Linux and macOS:
./testrunner -jobFile job.yml -config config.yml
On Windows:
testrunner -jobFile job.yml -config config.yml
Info |
---|
On macOS with M1 chip, you may need to install Rosetta first:
|
Download the android-service executable in 32 bits and its version file : https://dl.greenspector.com/emulator/android-service-files.tar.gz
Info |
---|
On macOS with M1 chip, you have to download the android-service executable with arm architecture: https://dl.greenspector.com/emulator/android-service-files-mac-m1.tar.gz |
Go to your greenspector cache:
On Linux and macOS:
$HOME/.greenspector
On Windows:
C:\Users\[username]\.greenspector
Replace the android-service and android-service.version files with the downloaded files. You will have to decompress the tar.gz file.
You can now run the testrunner with the --no-update option:
On Linux and macOS:
./testrunner -jobFile job.yml -config config.yml --no-update
On Windows:
testrunner -jobFile job.yml -config config.yml --no-update
...