Create a Multi-Test
API Explorer: /multi-tests
To create a multi-test:
- Create the multi-test object with a POST to the test endpoint (see sample code).
- Capture the
collectionId
returned asid
from the response. - Add tests to multi-test by using the
collectionId
, which is explained in the Add Tests to Multi-Test section. - Edit the test configurations for individual test, which is explained in the Edit Tests in Multi-Test section.
- Upload data files by using the
collectionId
and the code explained in the Upload or Update Data Files section.
See Update a Multi-Test for more information.
Once created, a test can be executed as part of any of your workflows, so make sure to save the
id
for later use. The collectionId
will be used as a parameter to identify the test.Create a Multi-Test
curl 'https://a.blazemeter.com/api/v4/multi-tests' \
-X POST \
-H 'Content-Type: application/json' \
--user 'api_key_id:api_key_secret' \
-d '{"collectionType": "multiV4","name": "Minimum Configuration","projectId": 123456}'
Create Multi-Test Request Attributes
Attributes
-
collectionType
stringrequired
The type of multi-test. Always will be
multiV4
-
name
stringrequired
The name of the multi-test
-
projectId
integerrequired
The
projectId
to which this multi-test belongs
For the full details of all the attributes for the Performance Test, you can visit The Multi Test Object.
Create a Multi-TestCreate a Multi-Test POST Body (JSON)
{
"collectionType": "multiV4",
"name": "My Multi-Test",
"projectId": 123456
}
Response201 Created
{
"api_version": 4,
"error": null,
"result": {
"id": 12345678,
"name": "My Multi-Test",
"collectionType": "multiV4",
"userId": 123456,
"created": 1552063283,
"updated": 1552063283,
"creatorClientId": "api",
"shouldSendReportEmail": true,
"projectId": 123456,
"filesToSplit": [],
"dataFiles": []
}
}