Pre-requisites :
Access to the API (Greenspector account)
Private token (On http://app.greenspector.com/ , click on your username then Preferences)
URL of the website to benchmark
Swagger de l’API : https://app.greenspector.com/api/ui/#
Create an application
Target URL : https://app.greenspector.com
...
Code Block |
---|
{ "name":"My App", "description":"Description" } |
Create a job request
Target URL : https://app.greenspector.com
...
Code Block |
---|
{ "applicationId": 1, "auditId": 2, "jobId": 3 } |
Supervise job state
Target URL : https://app.greenspector.com
...
Code Block |
---|
{ "id": :jobId, "status": "finished", "errors": [], "startDate": "2021-01-18T10:01:17.000Z", "endDate": "2021-01-18T10:04:25.000Z", "mode": "url", "browser": "chrome", "url": "", "TestsStatus": [ [ { "Dumpsys": false, "IterationID": "1", "Logs": "", "StackTrace": "", "Status": "success", "TestGroupName": "", "TestName": "Benchmark URL" } ] ], "TestBenchEnvironment": { "platform": "mobile", "os": "android", "version": "8", "device": "Samsung - Galaxy S7" } } |
Retrieve the job’s report :
Target URL : https://app.greenspector.com
...