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
Parameters
-
workspaceId
integerrequired
The
workspaceId
you want to use to get the test schedule history -
accountId
integerrequired
The
accountId
you want to use to get the test schedule history -
projectId
integerrequired
The
projectId
you want to use to get the test schedule history -
testId
integerrequired
The
testId
you want to use to get the list of test schedule history -
collectionId
integerrequired
The
collectionId
you want to use to get the test schedule history -
scheduleId
integerrequired
The
scheduleId
you want to use to get the test schedule history -
fromDate
integerThe timestamp from where to start the test schedule history
-
toDate
integerThe 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
Attributes
-
id
stringThe
historyId
for the test run history -
runAt
integerThe timestamp when the schedule ran
-
success
booleanDenotes if the test ran or not
-
name
stringThe name of the test that was run
-
scheduleId
stringThe
scheduleId
for the created schedule -
scheduleType
stringType of schedule
-
scheduleCronExpression
stringThe cron schedule used for the test
-
projectId
integerThe
projectId
of the project -
workspaceId
integerThe
workspaceId
of the workspace for the test -
accountId
integerThe
accountId
of the account -
testId
integerThe
testId
of the test -
testCollectionId
integerThe
collectionId
of the multi test -
masterId
integerThe
masterId
of the master -
created
integerThe timestamp when the master was created
-
updated
integerThe 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
}
]
}