Greenspector Documentation has been moved.
Please go to
https://greenspectorstudio.atlassian.net/l/cp/TDhqYDSu
Test Runner installation
UP TO DATE
Downloading
Download the Test Runner executable from theGREENSPECTOR Modules page and place it in a folder of your choice.Set Up
To use the Test Runner, you first need to customize the configuration files to match your needs.
Instead of creating those files by yourself, you can just run the Test Runner executable a first time and if no configuration file is found, they will be automatically created. You can then open them with the text editor of your choice and edit the configuration to match your needs.
Details about how to configure these files can be found in the section Test Runner.
To do so, open a terminal on the directory you put the Test Runner in and use the following command:
$ ./testrunner
testrunner.exe
Test Runner Modules
The Test Runner offers extra-features that can be activated as modules
.
http_request
This module allows you to analyse web resources such as: number of HTTP requests, header management, compression of static resources and many more. Enabling this module will increase your network eco-score on your GREENSPECTOR application's dashboard.
In order to activate this module, you need to:
- install NodeJS;
- install phantomas with npm (package manager for JavaScript):
npm install -g phantomas
; - check phantomas installation correctly worked:
phantomas --version;
- add the path to your phantomas installation in the Test Runner configuration file config.yml (see the section Test Runner for more details).
android_system_monitoring
This module aims to collect and analyze additional system metrics while measuring an APK. In order to activate this module, you need to install Android SDK on your computer.
Related articles