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
-
agent
stringThe ID of the agent used to execute this request. If an API Monitoring location was used,
null
-
assertions_defined
integerThe total number of simple assertions (non-script) defined for all requests in this test run
-
assertions_failed
integerThe total number of simple assertions that failed for all requests in this test run
-
assertions_passed
integerThe total number of simple assertions that passed for all requests in this test run
-
bucket_key
stringThe key for the bucket that contains the test that caused this test run
-
finished_at
floatThe Unix timestamp representing when the test run completed
-
region
stringThe region code for the API Monitoring location used to execute the test run. If an agent was used,
null
-
requests
arrayA list of the request details
Show/Hide Child Attributes
-
uuid
stringThe unique ID for the individual test step. Can be used with the Test Step Detail resource to retrieve full HTTP request and response details for request and incoming request steps
-
result
stringThe aggregate result of variables, assertions, and scripts processed for this test run. Either
pass
(all passed) orfail
(any failed) -
url
stringThe URL that was used for this request
-
method
stringThe HTTP method used for this request
-
assertions_defined
integerThe number of simple assertions (non-script) defined for this request
-
assertions_failed
integerThe number of simple assertions (non-script) that failed for this request
-
assertions_passed
integerThe number of simple assertions (non-script) that passed for this request
-
scripts_defined
integerThe number of scripts defined for this request
-
scripts_failed
integerThe number of scripts that failed for this request
-
scripts_passed
integerThe number of scripts that passed for this request
-
variables_defined
integerThe number of simple variables (non-script) defined for this request
-
variables_failed
integerThe number of simple variables (non-script) that failed for this request
-
variables_passed
integerThe number of simple variables (non-script) that passed for this request
-
assertions
arrayList of assertions in this test
Show/Hide Child Attributes
-
result
stringThe pass/fail result for this assertion
-
source
stringThe data source for the assertion. Possible values are
json
,xml
,response_headers
,response_size_bytes
,response_time_ms
orstatus_code
-
property
stringThe target property within the data source used to locate the actual value
-
comparison
stringThe comparison used to compare the target and expected values. Possible values are
equals
,does_not_equal
,is_empty
,is_not_empty
,greater_than_or_equal
,greater_than
,less_than_or_equal
,less_than
,equals_number
,contains
,does_not_contain
,has_key
orhas_value
-
target_value
stringThe value to compare against
-
actual_value
stringThe actual value extracted during the test run
-
error
nullIf the assertion failed, a description of the failure. If the assertion passed,
null
-
-
scripts
arrayList of scripts for this test
Show/Hide Child Attributes
-
result
stringThe pass/fail result of the script
-
output
stringAny log output from the script execution
-
error
nullAdditional information if a script fails
-
-
timings
objectThe timing details for this test
Show/Hide Child Attributes
-
dns_lookup_ms
floatTotal time for DNS lookup in milliseconds
-
dial_ms
floatTotal time connecting to server in milliseconds
-
send_headers_ms
floatTotal time to send headers in milliseconds
-
send_body_ms
floatTotal time to send request body in milliseconds
-
wait_for_response_ms
floatTotal time waiting for response in milliseconds
-
receive_response_ms
floatTotal time to receive response in milliseconds
-
-
variables
arrayList of variables used in this test
Show/Hide Child Attributes
-
result
stringThe pass/fail result for this variable
-
source
stringThe data source for the variable. Possible values are
json
,xml
,response_headers
,response_size_bytes
,response_time_ms
orstatus_code
-
property
stringThis is the property used to extract the value you are looking for. See here for more details
-
name
stringThe name of the variable
-
value
integerThe value used for this variable
-
error
stringThe error produced by this error
-
-
-
requests_executed
integerThe number of requests executed in this test run
-
result
stringThe overall result of the test run. Possible values are:
pass
,fail
,working
,canceled
, orqueued
-
scripts_defined
integerThe number of scripts defined across all requests in this test run
-
scripts_failed
integerThe number of scripts that didn't complete in this test run
-
scripts_passed
integerThe number of scripts that were successfully processed in this test run
-
started_at
floatThe Unix timestamp representing the time the test run was initiated
-
test_run_id
stringThe unique ID for this test run
-
test_id
stringThe unique ID for this test
-
parent_test_uuid
stringThe unique ID for the parent test
-
variables_defined
integerThe number of variables defined across all requests in this test run
-
variables_failed
integerThe number of variables that failed across all requests in this test run
-
variables_passed
integerThe number of variables that passed across all requests in this test run
-
run_by
stringThe user performing the test run
-
subtests
booleanIf 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
}