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.
The Test Runner needs two configuration files: config.yml and job.yml. These should be in the same folder as the Test Runner executable. As explained below, the Test Runner can automatically generate these files for you.

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:


Linux
$ ./testrunner
Windows
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:

  1. install NodeJS;
  2. install phantomas with npm (package manager for JavaScript): npm install -g phantomas;
  3. check phantomas installation correctly worked: phantomas --version;
  4. 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