Test Result Detail

Retrieve the details of a given test run by ID.

Test Result Detail

curl 'https://api.runscope.com/buckets/<bucket_key>/tests/<test_id>/results/<test_run_id>' \
    -H 'Authorization: Bearer <access_token>'

Latest Test Result Detail

curl 'https://api.runscope.com/buckets/<bucket_key>/tests/<test_id>/results/latest' \
    -H 'Authorization: Bearer <access_token>'

Test Result Detail Response Attributes

Attributes

  • agentstring

    The ID of the agent used to execute this request. If an API Monitoring location was used, null

  • assertions_definedinteger

    The total number of simple assertions (non-script) defined for all requests in this test run

  • assertions_failedinteger

    The total number of simple assertions that failed for all requests in this test run

  • assertions_passedinteger

    The total number of simple assertions that passed for all requests in this test run

  • bucket_keystring

    The key for the bucket that contains the test that caused this test run

  • finished_atfloat

    The Unix timestamp representing when the test run completed

  • regionstring

    The region code for the API Monitoring location used to execute the test run. If an agent was used, null

  • requestsarray

    A list of the request details

  • requests_executedinteger

    The number of requests executed in this test run

  • resultstring

    The overall result of the test run. Possible values are: pass, fail, working, canceled, or queued

  • scripts_definedinteger

    The number of scripts defined across all requests in this test run

  • scripts_failedinteger

    The number of scripts that didn't complete in this test run

  • scripts_passedinteger

    The number of scripts that were successfully processed in this test run

  • started_atfloat

    The Unix timestamp representing the time the test run was initiated

  • test_run_idstring

    The unique ID for this test run

  • test_idstring

    The unique ID for this test

  • parent_test_uuidstring

    The unique ID for the parent test

  • variables_definedinteger

    The number of variables defined across all requests in this test run

  • variables_failedinteger

    The number of variables that failed across all requests in this test run

  • variables_passedinteger

    The number of variables that passed across all requests in this test run

  • run_bystring

    The user performing the test run

  • subtestsboolean

    If true, returns the subtest information

Response200 OK

{
    "meta": {
        "status": "success"
    },
    "data": {
        "requests": [
            {
                "url": null,
                "method": null,
                "uuid": "d8c97a0e-197f-46f0-b870-b9027c0c7c00",
                "result": "pass",
                "variables": [],
                "assertions": [],
                "scripts": [
                    {
                        "output": "Hi from initial script\n",
                        "error": "",
                        "result": "pass"
                    }
                ],
                "error_messages": [],
                "response_message": null,
                "assertions_defined": 0,
                "assertions_passed": 0,
                "assertions_failed": 0,
                "variables_defined": 0,
                "variables_passed": 0,
                "variables_failed": 0,
                "scripts_defined": 1,
                "scripts_passed": 1,
                "scripts_failed": 0,
                "timings": null
            },
            {
                "url": "https://yourapihere.com/",
                "method": "POST",
                "uuid": "deae7051-b2c2-45c2-9c6e-3125aa6f4700",
                "result": "pass",
                "variables": [],
                "assertions": [
                    {
                        "result": "pass",
                        "source": "status_code",
                        "property": null,
                        "comparison": "equals_number",
                        "target_value": 200,
                        "actual_value": "200",
                        "error": null
                    }
                ],
                "scripts": [],
                "error_messages": [],
                "response_message": null,
                "assertions_defined": 1,
                "assertions_passed": 1,
                "assertions_failed": 0,
                "variables_defined": 0,
                "variables_passed": 0,
                "variables_failed": 0,
                "scripts_defined": 0,
                "scripts_passed": 0,
                "scripts_failed": 0,
                "timings": {
                    "dns_lookup_ms": 0.9772777557373047,
                    "dial_ms": 1.5935897827148438,
                    "send_headers_ms": 9.109735488891602,
                    "send_body_ms": 0.0050067901611328125,
                    "wait_for_response_ms": 31.31723403930664,
                    "receive_response_ms": 0.05412101745605469
                }
            },
            {
                "url": "http://this-is-a-dummy-url-for-subtest.com/Please-refer-subtest_details-for-more-information",
                "method": "GET",
                "uuid": "5c9f7749-b227-4612-a0f7-0837166cba71",
                "result": "pass",
                "variables": [],
                "assertions": [
                    {
                        "result": "pass",
                        "source": "json",
                        "property": "result",
                        "comparison": "equals",
                        "target_value": "pass",
                        "actual_value": "pass",
                        "error": null
                    }
                ],
                "scripts": [],
                "error_messages": [],
                "response_message": null,
                "assertions_defined": 1,
                "assertions_passed": 1,
                "assertions_failed": 0,
                "variables_defined": 0,
                "variables_passed": 0,
                "variables_failed": 0,
                "scripts_defined": 0,
                "scripts_passed": 0,
                "scripts_failed": 0,
                "timings": {}
            }
        ],
        "assertions_defined": 2,
        "assertions_passed": 2,
        "assertions_failed": 0,
        "bucket_key": "dnd096r5eddb",
        "started_at": 1749641219.7,
        "variables_defined": 0,
        "variables_passed": 0,
        "variables_failed": 0,
        "finished_at": 1749641236.09,
        "requests_executed": 1,
        "agent": null,
        "scripts_defined": 0,
        "scripts_passed": 0,
        "scripts_failed": 0,
        "result": "pass",
        "test_id": "45fe3a98-c136-4e3d-8792-ef904a56a047",
        "test_run_id": "42228ad7-3bf1-4d78-9c0a-63a4b208feda",
        "parent_test_uuid": "",
        "source": "manual",
        "region": "dev-puneet",
        "test_run_url": "https://gcpapitest.runscope.com/buckets/dnd096r5eddb/tests/45fe3a98-c136-4e3d-8792-ef904a56a047/results/42228ad7-3bf1-4d78-9c0a-63a4b208feda",
        "environment_id": "6f6aab61-5107-47d2-8ab4-4784fc64196d",
        "environment_name": "Test Settings",
        "run_by": "Püneēt Jaìn",
        "subtests_count": 1,
        "subtests_passed": 1,
        "subtests_failed": 0,
        "subtests_others": 0,
        "agent_expired": false,
        "subtest_detail": [
            {
                "name": "deck of card API",
                "note": "",
                "result": "pass",
                "test_uuid": "1e68073a-c37e-4ed8-88df-b9f9785e5834",
                "test_run_uuid": "782b9434-1ec5-474e-b43a-dbbc0b4a3d1f",
                "test_run_url": "https://gcptest.runscope.com/radar/dnd096r5eddb/1e68073a-c37e-4ed8-88df-b9f9785e5834/results/782b9434-1ec5-474e-b43a-dbbc0b4a3d1f",
                "started_at": "1749641230.601081",
                "finished_at": "1749641234.165292",
                "requests": [
                    {
                        "response_size_bytes": 79,
                        "url": "https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1",
                        "variables": {
                            "fail": 0,
                            "total": 0,
                            "pass": 0
                        },
                        "step_type": "request",
                        "note": "",
                        "result": "pass",
                        "response_status_code": "200",
                        "scripts": {
                            "fail": 0,
                            "total": 0,
                            "pass": 0
                        },
                        "method": "GET",
                        "response_time_ms": 172,
                        "assertions": {
                            "fail": 0,
                            "texts": [
                                "✅ Status Code Equals(Number) 200"
                            ],
                            "total": 1,
                            "pass": 1
                        }
                    }
                ]
            }
        ]
    },
    "error": null
}