NOTE: Please see the following link to view the latest information for this API:
https://api.blazemeter.com/#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
URL
https://a.blazemeter.com/api/v4/tests/testID/start
Request Parameters
Parameter | Description |
---|---|
Api Key | Identifies the user ( --user 'id:secret' ). How to get the API Key? |
Test ID |
cURL
curl -X POST https://a.blazemeter.com:443/api/v4/tests/<testID>/start -H "Content-Type: application/json" --user 'id:secret'
Python
import requests def testStart(test_id): return requests.post('https://a.blazemeter.com/api/v4/tests/{0}/start'.format(test_id), auth=('id','secret')) res = testStart(<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" ] } }
0 Comments