Follow

Start a Test

Description

This API enables to start the preconfigured load test. This function includes parameters to identify both the user and the test

API v4

URL

https://a.blazemeter.com/api/v4/tests/testID/start

Request Parameters

Parameter Description
Api Key Identifies the user. How to get the API Key?
Test ID

Identifies the test. How to get the Test ID?

cURL

curl -X POST https://a.blazemeter.com:443/api/v4/tests/testID/start -H "Content-Type: application/json" -H "x-api-key: 65f7f52eb362c3ec2e31"

Python

import requests

def testStart(test_id):
	return requests.post('https://a.blazemeter.com/api/v4/tests/{0}/start'.format(test_id), headers={"x-api-key": "65f7f52eb362c3ec2e31"})

res = testStsrt(<testID>)
print res.json()

Example Response

{
  "api_version": 4,
  "error": null,
  "result": {
    "id": 15926315,
    "name": "Dummytest",
    "userId": 67315,
    "runnerUserId": 67315,
    "created": 1484567311,
    "updated": 1484567311,
    "testId": 5351050,
    "projectId": 7402,
    "sessionsId": [
      "r-v3-587cb1bb8c513"
    ]
  }
}

 

 

API v2 

URL

https://a.blazemeter.com:443/api/latest/tests/testID/start

Request Parameters

Parameter Description
Api Key Identifies the user. How to get the API Key?
Test ID

Identifies the test. How to get the Test ID?

cURL

curl -X get https://a.blazemeter.com:443/api/latest/tests/testID/start -H "Content-Type: application/json" -H "x-api-key: 65f7f52eb362c3ec2e31"

Python

import requests

def testStart(test_id):
	return requests.get('https://a.blazemeter.com/api/latest/tests/{0}/start'.format(test_id), headers={"x-api-key": "65f7f52eb362c3ec2e31"})

res = testStsrt(<testID>)
print res.json()

Example Response

Parameter Description
testid The unique identifier of a test
name The verbal identifier of the Multi Test
userID The unique identifier of the user
created The time the Test was started at
updated The time the Test was last updated at
sessionId The unique identifier of a session of a test.
sessionsId Array of all the sessions which are included in that Multi Test
{
    "api_version": 2,
    "error": null,
    "result": {
        "id": 15069913,
        "name": "MyTest1",
        "userId": 67295,
        "created": 1431642758,
        "updated": 1431642758,
        "testID": 5059227,
        "sessionsId": ["r-op-beta55552286b085a"]
    }
}

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.