New features
This month, Greenspector is proud to announce that the Greenspector Studio API is now available. With this API, Greenspector strengthens its ability to integrate into many tools used by its customers (CI/CD platform, dashboard KPI … ).
Greenspector Studio - new interface
As a user, I would like to have a new page to follow the evolution of the ecoscore and the different metrics of the versions of my analysis
As a user, I want to use a swagger to test Greenspector Studio API. When you are connected to the interface, the swagger can be used without any other authentication.
As a user, I can create API tokens and I can see shared tokens of my organization.
When you create a token, you actually have two separate tokens created. Indeed, for the moment, Greenspector has two APIs which do not share the same system. The two tokens are :
an API token to access the new Greenspector Studio API with tools like curl, postman …
an API token to access the measuring workshop API with tools like curl, postman … and that you can use with Greenspector CLI to launch measure in CI / CD platform
As an admin, I can create an API token that I can share with everyone in my organization or share only with admins.
Power Test Bench & Test Runner
As a user, I would like to have more details about the network requests that occurred during the measurement steps. A json file networkPacketsResults.json is now available in the tests-results folder if the tcpdump module is enabled. It contains the IP adresses of the servers contacted with the volume of data exchanged.
Example:
{ "application": "TestBP", "version": "test-S7TCPDUMP", "deviceName": "sm-g930f", "iterations": [ { "iterationID": "1", "steps": [ { "stepName": "CHRGT_animationsCSS", "timestampStart": 1720617592580, "timestampEnd": 1720617594208, "dataVolume": 1823, "servers": { "51.255.194.216": { "serverName": "dl.greenspector.com", "serverIP": "51.255.194.216", "dataVolume": 1823 } } }, { "stepName": "PAUSE_animationsCSS", "timestampStart": 1720617596418, "timestampEnd": 1720617625921, "dataVolume": 1621, "servers": { "142.250.178.138": { "serverName": "findmydevice-pa.googleapis.com", "serverIP": "142.250.178.138", "dataVolume": 337 }, "142.250.74.234": { "serverName": "securitydomain-pa.googleapis.com", "serverIP": "142.250.74.234", "dataVolume": 685 }, "216.239.38.223": { "serverName": "play.googleapis.com", "serverIP": "216.239.38.223", "dataVolume": 271 }, "8.8.8.8": { "serverName": "unknown", "serverIP": "8.8.8.8", "dataVolume": 164 } } } ] } ] }
Test Runner
As a user, I can use the Test Runner to launch measurement on my local device and retrieve results in the new Greenspector Studio web interface. I only need to put
online: true
to my job.yml file.
API
As a user, I can generate an API token to call new Greenspector studio API with curl or any other tools.
For example, to list all analysis, you can call this example by replacing XXXX by your API token
curl -X 'GET' \ 'http://saas.greenspector.com/api/v1/applications' \ -H 'accept: application/json' \ -H 'Authorization: Bearer XXXX'
Improvements
Bug fixes
Greenspector Studio - new interface
Fixes an error that occurred when creating a benchmark of a mobile application
Fixes issue where user was not an admin of their organization when signing up
Test Runner
Fixes a bug linked to the new version of tcpdump (4.99.1). With this version, if we don't have the rights to run tcpdump without sudo, the "tcpdump --version" command doesn't work. Now, we check for the tcpdump rights before checking the version.
Documentation changes
API document with example with curl and postman API