Follow

GET Scheduled Tests

Description

The 'GET Scheduled Tests' BlazeMeter API enables you to get a list of scheduled tests and 'Multi Tests'. This API includes parameters to identify the test, Multi test, Project or Workspace, making it extremely useful for keeping up with your testing schedule.

URL

https://a.blazemeter.com/api/v4/schedules

Request Headers

Parameter Description
x-api-key Identifies the user ( --user 'id:secret' ). How to get the API Key?
Content-Type application/json

Request Query Parameters

Parameter Description

testId\collectionId\workspaceId\projectId

How to get the Test ID?
skip (Not mandatory) Skip the first X scheduled tests. Default value is 0
limit (Not mandatory) Limit the response to X scheduled tests. Default value is 10


cURL

curl -X GET https://a.blazemeter.com/api/v4/schedules?testId=341756 -H "Content-Type: application/json" --user 'id:secret'

Python

import requests

querystring = {"testId":"<testId>"}

def getScheduled():
    return requests.get('https://a.blazemeter.com/api/v4/schedules', params=querystring, auth=('id','secret'))
res = getScheduled() 
print res.json()

Example Response

{
  "limit": 10,
  "skip": 0,
  "total": 5,
  "api_version": 4,
  "error": null,
  "result": [
    {
      "id": "58b6c55071a123e593c7b23d9",
      "cron": "* * 2 3 *",
      "nextRun": 1488412800,
      "enabled": true,
      "type": "testRun",
      "created": 1488373072,
      "updated": 1488373072,
      "testId": 341756,
      "createdById": 248674
    },
    {
      "id": "58b6c775b3c4152o52d7b23e8",
      "cron": "* * 2 3 *",
      "nextRun": 1488412800,
      "enabled": true,
      "type": "testRun",
      "created": 1488373621,
      "updated": 1488373621,
      "testId": 341756,
      "createdById": 248674
    },
    {
      "id": "58b6ca2bb34a2132c367b23e5",
      "cron": "* * 2 3 *",
      "nextRun": 1488412800,
      "enabled": true,
      "type": "testRun",
      "created": 1488374315,
      "updated": 1488374315,
      "testId": 341756,
      "createdById": 248674
    },
    {
      "id": "58b6d4b6d476a1eb6517b23eb",
      "cron": "* * 2 4 *",
      "nextRun": 1491091200,
      "enabled": true,
      "type": "testRun",
      "created": 1488377014,
      "updated": 1488377014,
      "testId": 341756,
      "createdById": 248674
    },
    {
      "id": "58b6d4bbb3c4153ed437b63f4",
      "cron": "* * 2 5 *",
      "nextRun": 1493683200,
      "enabled": true,
      "type": "testRun",
      "created": 1488377019,
      "updated": 1488377019,
      "testId": 341756,
      "createdById": 248674
    }
  ]
}



Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.