Follow

Start a Multi Test

Description

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

 

API v4

Begins the Multi Test. This function includes parameters to identify both the user and the test

URL

https://a.blazemeter.com:443/api/v4/collections/collectionID/start

Request Parameters

Parameter Description
Api Key Identifies the user ( --user 'id:secret' ). How to get the API Key?
Collection ID Identifies the Multi test. How to get the Collection ID?

cURL

curl -X POST https://a.blazemeter.com:443/api/v4/collections/collectionID/start -H "Content-Type: application/json" --user 'id:secret'

Python

import requests

def collectionStart(collection_id):
	return requests.post('https://a.blazemeter.com/api/v4/collections/{0}/start'.format(collection_id), auth=('id','secret'))

res = collectionStsrt(<collectionID>) print res.json()

Example Response

Parameter Description
id The unique identifier of a specific session of a Multi test.
name The verbal identifier of the Multi Test
userID The unique identifier of the user
created The time the Multi Test was started at
updated The time the Multi Test was last updated at
testCollectionId The unique identifier of a Multi test. The 'CollectionID'
sessionsId Array of all the sessions which are included in that Multi Test
{
	"api_version": 4,
	"error": null,
	"result": {
		"id": 15886576,
		"name": "Citrix multi test",
		"userId": 500140,
		"publicToken": null,
		"ended": null,
		"lastUpdate": null,
		"delayedStartReady": null,
		"runnerUserId": 1,
		"charges": null,
		"usage": null,
		"maxUsers": null,
		"type": null,
		"wasIgnored": null,
		"passed": null,
		"created": 1484573669,
		"updated": 1484573669,
		"note": null,
		"testCollectionId": 10206190,
		"testId": null,
		"projectId": 714064,
		"sessionsId": [
			"r-v3-587ccbe53ab15",
			"r-v3-587ccb2ee3c8eb",
			"r-v3-587cc14e53d02c",
			"r-v3-587c1de53ecfe7",
			"r-v3-587ccbe53f415"
		],
		"taurusSession": null
	}
}

 

API v2

Begins the Multi Test. This function includes parameters to identify both the user and the test

URL

https://a.blazemeter.com:443/api/latest/collections/collectionID/start

Request Parameters

Parameter Description
Api Key Identifies the user ( --user 'id:secret' ). How to get the API Key?
Collection ID Identifies the Multi test. How to get the Collection ID?

cURL

curl -X get https://a.blazemeter.com:443/api/latest/collections/collectionID/start -H "Content-Type: application/json" --user 'id:secret'

Python

import requests

def collectionStart(collection_id):
	return requests.get('https://a.blazemeter.com/api/latest/collections/{0}/'.format(collection_id), headers={"x-api-key": "65f7f52eb365c3ec2e31"})
users = { user:'id:secret'
}
res = collectionStsrt(<collectionID>) print res.json()

Example Response

Parameter Description
id The unique identifier of a specific session of a Multi test.
name The verbal identifier of the Multi Test
userID The unique identifier of the user
created The time the Multi Test was started at
updated The time the Multi Test was last updated at
testCollectionId The unique identifier of a Multi test. The 'CollectionID'
sessionsId Array of all the sessions which are included in that Multi Test
{
    "api_version": 2,
    "error": null,
    "result": {
        "id": 150277844,
        "name": "Multi test no.1",
        "userId": 500115,
        "publicToken": null,
        "ended": null,
        "lastUpdate": null,
        "delayedStartReady": null,
        "created": 1433197241,
        "updated": 1433197241,
        "note": null,
        "testCollectionId": 10002561,
        "testId": null,
        "projectId": null,
        "sessionsId": [
            "r-op-beta556cdab2a3c7d",
            "r-op-beta556cdaf19e61c",
            "r-op-beta556bb7b9a8fbb"
        ]
    }
}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.