GET   scenario/status/{runId}

Returns the scenario run status report

URL Parameters

NameDescription
runId

Id of scenario run

Response body model example and description

{
  "run_id": 64442,
  "status": 0,
  "jobs": [
    {
      "job_id": 543,
      "status": 2,
      "message": "Job ongoing",
      "scheduled": true,
      "running": true,
      "completed": true,
      "error": false,
      "aborted": false,
      "active": true,
      "test_result_id": 1245,
      "stats": {
        "active_users": 333,
        "failed_loops": 0,
        "passed_loops": 10
      },
      "pages": [
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        },
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        },
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        }
      ]
    },
    {
      "job_id": 543,
      "status": 2,
      "message": "Job ongoing",
      "scheduled": true,
      "running": true,
      "completed": true,
      "error": false,
      "aborted": false,
      "active": true,
      "test_result_id": 1245,
      "stats": {
        "active_users": 333,
        "failed_loops": 0,
        "passed_loops": 10
      },
      "pages": [
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        },
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        },
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        }
      ]
    },
    {
      "job_id": 543,
      "status": 2,
      "message": "Job ongoing",
      "scheduled": true,
      "running": true,
      "completed": true,
      "error": false,
      "aborted": false,
      "active": true,
      "test_result_id": 1245,
      "stats": {
        "active_users": 333,
        "failed_loops": 0,
        "passed_loops": 10
      },
      "pages": [
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        },
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        },
        {
          "page_number": 1,
          "page_name": "Page #1: Home",
          "average_response_time": 17,
          "passed_calls": 110,
          "failed_calls": 0,
          "hard_errors": 5,
          "soft_errors": 3
        }
      ]
    }
  ]
}
Name Type Description
run_id Integer

The ID of the scenario run

status Integer

The status id of the scenario run. 0 - all jobs in scenario run are in scheduled state. 1 - all jobs in scenario run are in scheduled state or in running state. 2 - some jobs has failed already but there are other scheduled or running jobs. 3 - all jobs has finished and there are some failed jobs. 4 - all jobs has finished successfully

jobs Array

List of jobs

job_id Integer

The ID of the job

status Integer

The job status id

message String

The status of the job

scheduled Boolean

Whether or not the job is scheduled but not running

running Boolean

Whether or not the job is running

completed Boolean

Whether or not the job has finished with or without an error

error Boolean

Whether the job has finished with an error, e.g. the job could not be transmitted to the load testing agents

aborted Boolean

Whether the job was aborted

active Boolean

Whether the job is still active. A job is active as long as it has not been deleted from LTP.

test_result_id Integer

The id of job test result. Null if job has no test result.

stats Object

The job stats

active_users Integer

Active users

failed_loops Integer

Number of failed loops

passed_loops Integer

Number of pased loops

pages Array

Job pages

page_number Integer

Page Number

page_name String

Page Name

average_response_time Integer

Average response time

passed_calls Integer

Number of passed calls

failed_calls Integer

Number of failed calls

hard_errors Integer

Number of hard errors

soft_errors Integer

Number of soft errors

;