List Masters

API Explorer: /masters

To obtain a list of all test runs, use the testId and the /masters endpoint. The sample code returns test runs tied to a testId of 1234567. Use the actual testId in place of the 1234567.

The response shown includes one masterId ("id": 12345678). Any additional runs of the testId (every masterId) will also be returned as part of the result list.

List Masters

curl 'https://a.blazemeter.com/api/v4/masters?testId=1234567' \
    --user 'api_key_id:api_key_secret'

List All Test Runs Parameters

Below are a list of query parameters that can be used to narrow down your search for test runs:

Parameters

  • testId integer

    The unique identifier of the test. This is known as the testId and cannot be modified

  • projectId integer

    The unique identifier of the project. This is known as the projectId and cannot be modified

  • workspaceId integer

    required

    The unique identifier of the workspace. This is known as the workspaceId and cannot be modified

  • name string

    The unique string for a test run name to search for. For example, the string My Test will pull all results with this string in the name of the test

  • passed boolean

    Returns a list of test runs that have passed (true) or failed (false)

  • platform string

    The platform of tests to search for. This will always be functional for API and GUI functional tests

  • locations string

    The location of tests to search for. You will need to provide the location ID as the value for this parameter


Also see: Pagination and Sorting

List All Test Runs Response Attributes

See the The Master Object response attributes for a detailed breakdown of the response attributes.

Response200 OK

{
    "limit": 10,
    "skip": 0,
    "total": 1,
    "hidden": 0,
    "api_version": 4,
    "error": null,
    "result": [
        {
            "id": 12345678,
            "name": "API Created API Functional Test",
            "userId": 123456,
            "ended": 1577737645,
            "delayedStartReady": false,
            "runnerUserId": 123456,
            "charges": [],
            "created": 1577737580,
            "updated": 1577737947,
            "passed": false,
            "parallelTestsInWorkspace": 1,
            "parallelTestsInAccount": 1,
            "isPrivateData": false,
            "executionMode": "functional",
            "creatorClientId": "api",
            "executorClientId": "api",
            "secondsPerLabelDoc": 60,
            "labelsCollectionSuffix": "_17_12",
            "isDebugRun": false,
            "scenariosMapping": [
                {
                    "id": "0f4e8410f2d331f8bcfccebc6b0a16df5099dad2b109f5bb0eb5a03d74a47f99",
                    "name": "default-scenario-7562023",
                    "test": "API Created API Functional Test",
                    "isEndUserExperience": false
                }
            ],
            "executions": [
                {
                    "concurrency": 1,
                    "holdFor": "42719s",
                    "rampUp": "1s",
                    "iterations": 1,
                    "scenario": "default-scenario-7562023"
                }
            ],
            "useV4Pipeline": false,
            "isSelenium": false,
            "hasMonitoringData": true,
            "rpsCompatible": false,
            "remoteControlCompatible": false,
            "hasDaggerData": false,
            "shouldUseDaggerReport": false,
            "testId": 1234567,
            "projectId": 123456,
            "sessionsId": [
                "r-v4-5e0a5d6cf08c6"
            ],
            "functionalSummary": {
                "testsCount": 28,
                "requestsCount": 28,
                "errorsCount": 7,
                "assertions": {
                    "count": 0,
                    "passed": 0
                },
                "responseTime": {
                    "sum": 12552
                },
                "isFailed": true,
                "failedCount": 7,
                "failedPercentage": 100
            }
        }
    ],
    "request_id": "5e0a65f9ec7cc"
}