Follow

Stop a Test

Description

Shuts Down the load test gracefully. This function includes parameters to identify both the user and the test

API v4

URL

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

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

curl -X POST https://a.blazemeter.com/api/v4/tests/testID/stop -H "Content-Type: application/json" -H "x-api-key: 62f7f52eb342c3ec1e31"

Python

import requests

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

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

Example Response

{
    "api_version": 4,
    "error": null,
    "result": [
        {
            "session_id": "r-op-beta5566283b036d6",
            "result": "shutdown command sent\n"
        }
    ]
}

 

 

API v2

URL

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

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

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

Python

import requests

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

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

Example Response

{
    "api_version": 2,
    "error": null,
    "result": [
        {
            "session_id": "r-op-beta5566283b036d6",
            "result": "shutdown command sent\n"
        }
    ]
}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.