List the runs of a test scenario

Retrieves the runs of a test scenario

GET /manage/scenarios/{scenarioId}/runs?offset={offset}&limit={limit}

URI Parameters

Name In Required Type Description

scenarioId

path

True

string

Version 4 UUID of the test scenario

offset

query

False

integer

Offset of the first scenario run in the list, default: 0

limit

query

False

integer

Maximum number of scenario runs returned, default: 20, maximum: 100

Responses

Name Type Description

200 OK

ScenarioRunListResponse[]

Scenario run list response object

Produces

  • application/json

Security

Every request requires a JWT access token for authentication in the Authorisation HTTP header. Please see the API authentication page for details about how to get a JWT token.

Authorization: Bearer {JWT_TOKEN}

Roles

  • Wenenu Owner

  • Wenenu Contributor

  • Wenenu Reader

Sample request

GET https://wenenu.com/manage/scenarios/8a444458-3fc2-4019-94c0-5c1bd973d2d5/runs?offset=0&limit=20 HTTP/1.1
Authorization: Bearer {jwt_token}

Sample Response

Status code: 200 OK

{
  "result": [
    {
      "id": "9c97a06c-325a-4f28-99e8-8670b658f19d",
      "state": "FINISHED",
      "scheduledTime": "2021-03-28T11:05:33.456+00:00",
      "startTime": "2021-03-28T11:05:34.282+00:00",
      "endTime": "2021-03-28T11:05:54.402+00:00",
      "stepCount": 1,
      "finished": 1,
      "skipped": 0,
      "failed": 0,
      "reportDone": true,
      "scenarioId": "686583f7-e99f-4994-848a-0b70f657cf91"
    },
    {
      "id": "6b1a208e-ec0e-40a6-896d-f0858a52e2b1",
      "state": "FINISHED",
      "scheduledTime": "2021-03-10T19:30:09.761+00:00",
      "startTime": "2021-03-10T19:30:10.657+00:00",
      "endTime": "2021-03-10T19:30:16.684+00:00",
      "stepCount": 1,
      "finished": 1,
      "skipped": 0,
      "failed": 0,
      "reportDone": true,
      "scenarioId": "686583f7-e99f-4994-848a-0b70f657cf91"
    }
  ],
  "total":2
}

Definitions

ScenarioRunListResponse

Name Type Description

result

ScenarioRun[]

List of the requested scenario runs

total

long

Total number of scenario runs of the test scenario

ScenarioRun

Name Type Description

id

string

Version 4 UUID of the scenario run

scenarioId

string

Version 4 UUID of the scenario to which the scenario run belongs

scheduledTime

string

The scheduled date and time of the scenario run in ISO 8601 format

startTime

string

Date and time of the actual start of the scenario run in ISO 8601 format

endTime

string

Date and time of the end of the scenario run in ISO 8601 format

state

string

The state of the scenario run, possible values are NOT STARTED, RUNNING, FAILED and FINISHED

stepCount

integer

The total number of test steps in the scenario run

finished

integer

The number of finished test steps in the scenario run

failed

integer

The number of failed test steps in the scenario run

skipped

integer

The number of skipped test steps in the scenario run

reportDone

boolean

True if the PDF report of the scenario run is ready for download