Create a Multi-Test

API Explorer: /multi-tests

To create a multi-test:

  1. Create the multi-test object with a POST to the test endpoint (see sample code).
  2. Capture the collectionId returned as id from the response.
  3. Add tests to multi-test by using the collectionId, which is explained in the Add Tests to Multi-Test section.
  4. Edit the test configurations for individual test, which is explained in the Edit Tests in Multi-Test section.
  5. 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

  • collectionTypestring

    required

    The type of multi-test. Always will be multiV4

  • namestring

    required

    The name of the multi-test

  • projectIdinteger

    required

    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
}

Create a Multi-Test Response Attributes

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": []
    }
}