List Schedule History
API Explorer: /schedules/history
To return a list of test schedules, an accountId, a projectId, a workspaceId, a collectionId, a testId, OR a scheduleId is required. The sample code returns a list for schedule history for a testId of 1234567. Use the actual ID values for the project, workspace, collection, test, or schedule to return the history of your schedules.
You can return a schedule history specifying either a projectId, a workspaceId, a collectionId, a testId, or any combination of the workspace, project, and either testId or collectionId or scheduleId. The returned list contains the schedule history of the test runs that meet the parameters provided.
List Schedule History Parameters
All timestamps are in UNIX Epoch time.
Parameters
-
workspaceIdintegerrequired
The
workspaceIdyou want to use to get the test schedule history -
accountIdintegerrequired
The
accountIdyou want to use to get the test schedule history -
projectIdintegerrequired
The
projectIdyou want to use to get the test schedule history -
testIdintegerrequired
The
testIdyou want to use to get the list of test schedule history -
collectionIdintegerrequired
The
collectionIdyou want to use to get the test schedule history -
scheduleIdintegerrequired
The
scheduleIdyou want to use to get the test schedule history -
fromDateintegerThe timestamp from where to start the test schedule history
-
toDateintegerThe timestamp at which to end the test schedule history
Also see: Pagination and Sorting
List Schedule History
curl 'https://a.blazemeter.com/api/v4/schedules/history?testId=1234567' \
--user 'api_key_id:api_key_secret'
List Schedule History Response Attributes
All timestamps are in UNIX Epoch time.
Attributes
-
idstringThe
historyIdfor the test run history -
runAtintegerThe timestamp when the schedule ran
-
successbooleanDenotes if the test ran or not
-
namestringThe name of the test that was run
-
scheduleIdstringThe
scheduleIdfor the created schedule -
scheduleTypestringType of schedule
-
scheduleCronExpressionstringThe cron schedule used for the test
-
projectIdintegerThe
projectIdof the project -
workspaceIdintegerThe
workspaceIdof the workspace for the test -
accountIdintegerThe
accountIdof the account -
testIdintegerThe
testIdof the test -
testCollectionIdintegerThe
collectionIdof the multi test -
masterIdintegerThe
masterIdof the master -
createdintegerThe timestamp when the master was created
-
updatedintegerThe timestamp when the master was updated
Response200 OK
{
"limit": 10,
"skip": 0,
"total": 1,
"hidden": 0,
"api_version": 4,
"error": null,
"result": [
{
"id": "5c83f8919fee716a488b4567",
"runAt": 1552152723,
"success": true,
"name": "My New Test",
"scheduleId": "5c83f8840bd290041e05351d",
"scheduleType": "testRun",
"scheduleCronExpression": "32 17 * * 6",
"projectId": 123456,
"workspaceId": 123429,
"accountId": 123456,
"testId": 1234567,
"masterId": 12345678,
"created": 1552152721,
"updated": 1552152723
}
]
}