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": "3efa15de-9282-4f53-9291-2d14eaf50116",
                "result": null,
                "variables": null,
                "assertions": null,
                "scripts": null,
                "assertions_defined": null,
                "assertions_passed": null,
                "assertions_failed": null,
                "variables_defined": null,
                "variables_passed": null,
                "variables_failed": null,
                "scripts_defined": null,
                "scripts_passed": null,
                "scripts_failed": null,
                "timings": null
            },
            {
                "url": "https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1",
                "method": "GET",
                "uuid": "eac758ec-8b32-4235-ab70-9120f2176e38",
                "result": "pass",
                "variables": [
                    {
                        "result": "pass",
                        "source": "json",
                        "property": "deck_id",
                        "name": "deck_id",
                        "value": "8i3go9itqhbf",
                        "error": null
                    }
                ],
                "assertions": [
                    {
                        "result": "pass",
                        "source": "status_code",
                        "property": null,
                        "comparison": "equals_number",
                        "target_value": 200,
                        "actual_value": "200",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "response_time_ms",
                        "property": null,
                        "comparison": "less_than",
                        "target_value": "500",
                        "actual_value": "439.0",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "json",
                        "property": "remaining",
                        "comparison": "equals_number",
                        "target_value": "52",
                        "actual_value": "52",
                        "error": null
                    }
                ],
                "scripts": [],
                "assertions_defined": 3,
                "assertions_passed": 3,
                "assertions_failed": 0,
                "variables_defined": 1,
                "variables_passed": 1,
                "variables_failed": 0,
                "scripts_defined": 0,
                "scripts_passed": 0,
                "scripts_failed": 0,
                "timings": {
                    "dns_lookup_ms": 11.345386505126953,
                    "dial_ms": 2.6960372924804688,
                    "send_headers_ms": 10.195255279541016,
                    "send_body_ms": 0.0019073486328125,
                    "wait_for_response_ms": 425.7347583770752,
                    "receive_response_ms": 0.06461143493652344
                }
            },
            {
                "url": "https://deckofcardsapi.com/api/deck/8i3go9itqhbf/draw/?count=2",
                "method": "GET",
                "uuid": "ef556c3d-d9b7-4afc-af83-6bd8e4a43299",
                "result": "pass",
                "variables": [
                    {
                        "result": "pass",
                        "source": "json",
                        "property": "cards[0].code",
                        "name": "first_card_code",
                        "value": "AD",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "json",
                        "property": "cards[1].code",
                        "name": "second_card_code",
                        "value": "JH",
                        "error": null
                    }
                ],
                "assertions": [
                    {
                        "result": "pass",
                        "source": "status_code",
                        "property": null,
                        "comparison": "equals_number",
                        "target_value": 200,
                        "actual_value": "200",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "response_time_ms",
                        "property": null,
                        "comparison": "less_than",
                        "target_value": "500",
                        "actual_value": "238.0",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "json",
                        "property": "remaining",
                        "comparison": "equals_number",
                        "target_value": "50",
                        "actual_value": "50",
                        "error": null
                    }
                ],
                "scripts": [],
                "assertions_defined": 3,
                "assertions_passed": 3,
                "assertions_failed": 0,
                "variables_defined": 2,
                "variables_passed": 2,
                "variables_failed": 0,
                "scripts_defined": 0,
                "scripts_passed": 0,
                "scripts_failed": 0,
                "timings": {
                    "dns_lookup_ms": 6.918907165527344,
                    "dial_ms": 2.307415008544922,
                    "send_headers_ms": 9.010791778564453,
                    "send_body_ms": 0.002384185791015625,
                    "wait_for_response_ms": 225.95882415771484,
                    "receive_response_ms": 0.064849853515625
                }
            },
            {
                "url": "https://deckofcardsapi.com/api/deck/8i3go9itqhbf/pile/discard/add/?cards=AD%2CJH",
                "method": "GET",
                "uuid": "cd3bab6a-2abf-441c-bdf5-1d8fd4d37c0e",
                "result": "pass",
                "variables": [],
                "assertions": [
                    {
                        "result": "pass",
                        "source": "status_code",
                        "property": null,
                        "comparison": "equals_number",
                        "target_value": 200,
                        "actual_value": "200",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "response_time_ms",
                        "property": null,
                        "comparison": "less_than",
                        "target_value": "500",
                        "actual_value": "239.0",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "json",
                        "property": "piles.discard.remaining",
                        "comparison": "equals_number",
                        "target_value": "2",
                        "actual_value": "2",
                        "error": null
                    }
                ],
                "scripts": [],
                "assertions_defined": 3,
                "assertions_passed": 3,
                "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": 9.076356887817383,
                    "dial_ms": 2.7964115142822266,
                    "send_headers_ms": 10.895490646362305,
                    "send_body_ms": 0.001430511474609375,
                    "wait_for_response_ms": 224.6863842010498,
                    "receive_response_ms": 0.05817413330078125
                }
            },
            {
                "url": "https://deckofcardsapi.com/api/deck/8i3go9itqhbf/pile/discard/list/",
                "method": "GET",
                "uuid": "786a296f-56f9-414a-b21c-c85dde52f028",
                "result": "pass",
                "variables": [],
                "assertions": [
                    {
                        "result": "pass",
                        "source": "status_code",
                        "property": null,
                        "comparison": "equals_number",
                        "target_value": 200,
                        "actual_value": "200",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "response_time_ms",
                        "property": null,
                        "comparison": "less_than",
                        "target_value": "500",
                        "actual_value": "244.0",
                        "error": null
                    },
                    {
                        "result": "pass",
                        "source": "json",
                        "property": "piles.discard.remaining",
                        "comparison": "equals_number",
                        "target_value": "2",
                        "actual_value": "2",
                        "error": null
                    }
                ],
                "scripts": [],
                "assertions_defined": 3,
                "assertions_passed": 3,
                "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": 9.302854537963867,
                    "dial_ms": 3.0939579010009766,
                    "send_headers_ms": 9.891033172607422,
                    "send_body_ms": 0.0016689300537109375,
                    "wait_for_response_ms": 230.18383979797363,
                    "receive_response_ms": 0.06842613220214844
                }
            }
        ],
        "assertions_defined": 12,
        "assertions_passed": 12,
        "assertions_failed": 0,
        "bucket_key": "koa6ctwsgx9k",
        "started_at": 1639677275.7,
        "variables_defined": 3,
        "variables_passed": 3,
        "variables_failed": 0,
        "finished_at": 1639677286.6,
        "requests_executed": 4,
        "agent": null,
        "scripts_defined": 0,
        "scripts_passed": 0,
        "scripts_failed": 0,
        "result": "pass",
        "test_id": "4912dd0e-4522-49fa-9bc1-ffa20821a6d6",
        "test_run_id": "7d0236a0-469d-4b2a-b882-64acd2cb685f",
        "parent_test_uuid": "7abab89c-2a2d-4600-badc-44a75b60e5ad",
        "source": "scheduled",
        "region": "au1",
        "test_run_url": "https://api.runscope.com/buckets/koa6ctwsgx9k/tests/4912dd0e-4522-49fa-9bc1-ffa20821a6d6/results/7d0236a0-469d-4b2a-b882-64acd2cb685f",
        "environment_id": "d925b6b4-3aa3-4220-8a3b-7437f24f647c",
        "environment_name": "Prod Settings",
        "run_by": "Jane Doe",
        "subtests_count": 0,
        "subtests_passed": 0,
        "subtests_failed": 0,
        "subtests_others": 0,
        "agent_expired": false,
        "subtest_detail": {
            "name": null,
            "note": null,
            "result": null,
            "test_uuid": null,
            "test_run_uuid": null,
            "test_run_url": null,
            "started_at": null,
            "finished_at": null
        }
    },
    "error": null
}