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
-
agentstringThe ID of the agent used to execute this request. If an API Monitoring location was used,
null -
assertions_definedintegerThe total number of simple assertions (non-script) defined for all requests in this test run
-
assertions_failedintegerThe total number of simple assertions that failed for all requests in this test run
-
assertions_passedintegerThe total number of simple assertions that passed for all requests in this test run
-
bucket_keystringThe key for the bucket that contains the test that caused this test run
-
finished_atfloatThe Unix timestamp representing when the test run completed
-
regionstringThe region code for the API Monitoring location used to execute the test run. If an agent was used,
null -
requestsarrayA list of the request details
Show/Hide Child Attributes
-
uuidstringThe 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
-
resultstringThe aggregate result of variables, assertions, and scripts processed for this test run. Either
pass(all passed) orfail(any failed) -
urlstringThe URL that was used for this request
-
methodstringThe HTTP method used for this request
-
assertions_definedintegerThe number of simple assertions (non-script) defined for this request
-
assertions_failedintegerThe number of simple assertions (non-script) that failed for this request
-
assertions_passedintegerThe number of simple assertions (non-script) that passed for this request
-
scripts_definedintegerThe number of scripts defined for this request
-
scripts_failedintegerThe number of scripts that failed for this request
-
scripts_passedintegerThe number of scripts that passed for this request
-
variables_definedintegerThe number of simple variables (non-script) defined for this request
-
variables_failedintegerThe number of simple variables (non-script) that failed for this request
-
variables_passedintegerThe number of simple variables (non-script) that passed for this request
-
assertionsarrayList of assertions in this test
Show/Hide Child Attributes
-
resultstringThe pass/fail result for this assertion
-
sourcestringThe data source for the assertion. Possible values are
json,xml,response_headers,response_size_bytes,response_time_msorstatus_code -
propertystringThe target property within the data source used to locate the actual value
-
comparisonstringThe 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_keyorhas_value -
target_valuestringThe value to compare against
-
actual_valuestringThe actual value extracted during the test run
-
errornullIf the assertion failed, a description of the failure. If the assertion passed,
null
-
-
scriptsarrayList of scripts for this test
Show/Hide Child Attributes
-
resultstringThe pass/fail result of the script
-
outputstringAny log output from the script execution
-
errornullAdditional information if a script fails
-
-
timingsobjectThe timing details for this test
Show/Hide Child Attributes
-
dns_lookup_msfloatTotal time for DNS lookup in milliseconds
-
dial_msfloatTotal time connecting to server in milliseconds
-
send_headers_msfloatTotal time to send headers in milliseconds
-
send_body_msfloatTotal time to send request body in milliseconds
-
wait_for_response_msfloatTotal time waiting for response in milliseconds
-
receive_response_msfloatTotal time to receive response in milliseconds
-
-
variablesarrayList of variables used in this test
Show/Hide Child Attributes
-
resultstringThe pass/fail result for this variable
-
sourcestringThe data source for the variable. Possible values are
json,xml,response_headers,response_size_bytes,response_time_msorstatus_code -
propertystringThis is the property used to extract the value you are looking for. See here for more details
-
namestringThe name of the variable
-
valueintegerThe value used for this variable
-
errorstringThe error produced by this error
-
-
-
requests_executedintegerThe number of requests executed in this test run
-
resultstringThe overall result of the test run. Possible values are:
pass,fail,working,canceled, orqueued -
scripts_definedintegerThe number of scripts defined across all requests in this test run
-
scripts_failedintegerThe number of scripts that didn't complete in this test run
-
scripts_passedintegerThe number of scripts that were successfully processed in this test run
-
started_atfloatThe Unix timestamp representing the time the test run was initiated
-
test_run_idstringThe unique ID for this test run
-
test_idstringThe unique ID for this test
-
parent_test_uuidstringThe unique ID for the parent test
-
variables_definedintegerThe number of variables defined across all requests in this test run
-
variables_failedintegerThe number of variables that failed across all requests in this test run
-
variables_passedintegerThe number of variables that passed across all requests in this test run
-
run_bystringThe user performing the test run
-
subtestsbooleanIf true, returns the subtest information
-
Show/Hide Child Attributes
-
subtests_countintegerTotal number of subtests executed as part of the test run
-
subtests_passedintegerNumber of subtests that completed with a passing result
-
subtests_failedintegerNumber of subtests that failed due to failed assertions, scripts, or other errors
-
subtests_othersintegerNumber of subtests that did not complete with a pass or fail status
-
subtest_detailarrayIncludes subtest metadata and per-step info
Show/Hide Child Attributes
-
step_typestringThe type of execution
-
response_size_bytesintegerResponse size in bytes
-
response_status_codestring/integerHTTP status
-
response_time_msintegerTime taken to receive a response
-
variablesarraySummary of variable evaluation results, including counts for passed, failed, and total
-
scriptsarraySummary of script execution results, showing counts for passed, failed, and total scripts
-
assertionsarraySummary of assertion results, including pass/fail counts and any descriptive messages
-
-
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
}