Skip to main content

Test Status History

This Eggplant Performance Test Controller REST method gets the test status over time.

URL

/test_controller/api/1.0/<workspace>/<project>/<test>/status_history

HTTP Method

GET: Gets the test status over time

URL Query Parameters

The following can be added to the URL as query parameters:

ParameterDescription
after_timeA time, expressed in milliseconds since Jan. 1 1970. Only values collected after this time will be returned.
bucket_sizeA time interval, expressed in seconds. Returned data will be resampled to this interval.

Response Parameters

The response will be an object where each entry is a <timestamp>. For each timestamp, there will be an object describing the state of the test at that time:

ParameterTypeDescription
error_countIntegerThe total number of errors that have occurred.
warning_countIntegerThe total number of warnings that have occurred.
pass_countIntegerThe total number of progress points that have passed.
fail_countIntegerThe total number of progress points that have failed.
vus_pendingIntegerThe number of VUs in the pending state.
vus_runningIntegerThe number of VUs in the running state.
vus_abortedIntegerThe number of VUs in the aborted state.
vus_downIntegerThe number of VUs in the completed state.
vus_in_errorIntegerThe number of VUs in the error state.
vus_unknownIntegerThe number of VUs whose state is unknown.

Example Request

http://localhost:5001/test_controller/api/1.0/Demo%20Workspace/Demo/demoScript/status_history?after_time=147409660000&bucket_size=30

Example Response

{
"2016-09-17T07:09:00.000Z": {
"error_count": 0,
"warning_count": 0,
"pass_count": 0,
"fail_count": 0,
"vus_pending": 0,
"vus_running": 1,
"vus_aborted": 0,
"vus_down": 0,
"vus_in_error": 0,
"vus_unknown": 0
},
"2016-09-17T07:09:30.000Z": {
"error_count": 0,
"warning_count": 0,
"pass_count": 0,
"fail_count": 0,
"vus_pending": 0,
"vus_running": 1,
"vus_aborted": 0,
"vus_down": 0,
"vus_in_error": 0,
"vus_unknown": 0
},
"2016-09-17T07:10:00.000Z": {
"error_count": 0,
"warning_count": 0,
"pass_count": 0,
"fail_count": 0,
"vus_pending": 0,
"vus_running": 1,
"vus_aborted": 0,
"vus_down": 0,
"vus_in_error": 0,
"vus_unknown": 0
},
"2016-09-17T07:10:30.000Z": {
"error_count": 0,
"warning_count": 0,
"pass_count": 0,
"fail_count": 0,
"vus_pending": 0,
"vus_running": 0,
"vus_aborted": 0,
"vus_down": 1,
"vus_in_error": 0,
"vus_unknown": 0
}
}