Test Run

This page contains information about events called in the entity Test Run

Started Test Run

Payload example:

{
  "event_name": "run.started",
  "timestamp": 1650540069,
  "payload": {
    "id": 1,
    "title": "Test run 2022/04/21",
    "description": null,
     "plan": {
      "id": 3,
      "title": "d"
    },
    "cases_count": 14,
    "environment": null
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a new test run is started.

Event name

run.started

Payload fields

ParameterTypeDescription
idintegerTest run ID
titlestringTest run title
descriptionstringTest run description
planobjectTest plan ID and title.
cases_countintegerAmount of test cases in run
environmentstringEnvironment slug. Nullable.

Completed Test Run

Payload example:

{
  "event_name": "run.completed",
  "timestamp": 1650540194,
  "payload": {
    "id": 2,
    "cases": 14,
    "passed": 0,
    "failed": 0,
    "blocked": 0,
    "duration": 0
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a test run is successfully completed.

Event name

run.completed

Payload fields

ParameterTypeDescription
idintegerTest run ID
casesintegerAmount of test cases in a run
passedintegerAmount of passed cases
failedintegerAmount of failed cases
blockedintegerAmount of blocked cases
durationintegerTest run duration in seconds

Aborted Test Run

Payload example:

{
  "event_name": "run.aborted",
  "timestamp": 1650540148,
  "payload": {
    "id": 1,
    "cases": 14,
    "passed": 0,
    "untested": 14,
    "failed": 0,
    "blocked": 0,
    "skipped": 0,
    "duration": 0
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a test run is aborted.

Event name

run.aborted

Payload fields

ParameterTypeDescription
idintegerTest run ID
casesintegerAmount of test cases in a run
passedintegerAmount of passed cases
skipedintegerAmount of skiped cases
failedintegerAmount of failed cases
untestedintegerAmount of untested cases
blockedintegerAmount of blocked cases
durationintegerTest run duration in seconds

Deleted Test Run

Payload example:

{
  "event_name": "run.deleted",
  "timestamp": 1650540289,
  "payload": {
    "id": 1
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a test run is deleted.

Event name

run.deleted

Payload fields

ParameterTypeDescription
idintegerTest run ID

Report visibility changed Test Run

Payload example:

{
  "event_name": "run.report_changed",
  "timestamp": 1650540222,
  "payload": {
    "id": 2,
    "visible": true
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a public report visibility has been changed.

Event name

run.report_changed

Payload fields

ParameterTypeDescription
idintegerTest run ID
visiblebooleanShows if public report is available or not

Updated Test Run

Payload example:

{
  "event_name": "run.updated",
  "timestamp": 1650540114,
  "payload": {
    "id": 1,
    "cases_added": 14
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a test plan is updated and new test cases were added.

Event name

run.updated

Payload fields

ParameterTypeDescription
idintegerTest run ID
cases_countintegerAmount of test cases in run