Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Pre-requisites :

Create an application

Target URL : https://appcore-saas-prod.greenspector.com/

URI : /api/applications

Method : POST

...

Code Block
{
  "name":"My App",
  "description":"Description"
}

Create a job request

Target URL https://appcore-saas-prod.greenspector.com/

URI : /api/testbench/jobs

...

Code Block
{
  "applicationId": 1,
  "auditId": 2,
  "jobId": 3
}

Supervise job state

Target URL : https://appcore-saas-prod.greenspector.com/

URI : /api/testbench/jobs/:jobId

...

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://appcore-saas-prod.greenspector.com/

URI : /api/audits/:auditId/report

...