Duplicate a Test Suite
API Explorer: /multi-tests//duplicate
To duplicate a test suite, a collectionId
is required. The sample code duplicates the test suite with the collectionId
of 12345678
. Use the actual ID value for the test suite to return the detail of that test suite.
If you do not know the
collectionId
of the test suite to duplicate, use List Test Suites to return a list of your created test suites.Duplicate a Test Suite
curl 'https://a.blazemeter.com/api/v4/multi-tests/12345678/duplicate' \
-X POST \
-H 'Content-Type: application/json' \
--user 'api_key_id:api_key_secret'
Duplicate a Test Suite Response Attributes
For the full details of all the attributes for the test suite (multi-test), you can visit The Multi-Test Object.
Response201 Created
{
"api_version": 4,
"error": null,
"result": {
"id": 23456789,
"name": "API Created Functional Suite Test - Copy",
"description": null,
"collectionType": "functionalTestSuite",
"userId": 123456,
"items": [],
"oldVersionId": null,
"lastRunTime": null,
"draftId": null,
"filesToSplit": [],
"dataFiles": [],
"creatorClientId": "gui",
"testsForExecutions": [
{
"testId": 1234567,
"executions": [
{
"concurrency": 1,
"iterations": 1,
"locations": {
"harbor-58d3b97ff132adc0347b23c6": 1
},
"locationsWeighted": true,
"testId": 1234567,
"scenario": "My Scenario"
}
],
"overrideExecutions": [
{
"iterations": 1,
"executor": "taurus"
}
]
}
],
"migratedFromTestCollectionId": null,
"migratedToTestId": null,
"v4MigratedDate": null,
"underMigration": null,
"shouldSendReportEmail": false,
"created": 1591994426,
"updated": 1591994928,
"note": null,
"projectId": 123456,
"lastUpdatedById": null,
"kpiTrackingData": null,
"tests": [
{
"id": 1234567,
"isNewTest": true,
"lastRunTime": 1586202190,
"name": "API Functional Validation Test",
"userId": 123456,
"creatorClientId": "gui",
"overrideExecutions": [
{
"iterations": 1,
"executor": "taurus"
}
],
"executions": [
{
"concurrency": 1,
"iterations": 1,
"locations": {
"harbor-58d3b97ff132adc0347b23c6": 1
},
"locationsWeighted": true,
"scenario": "My Scenario"
}
],
"shouldSendReportEmail": false,
"dependencies": [],
"created": 1586201920,
"updated": 1586202071,
"configuration": {
"type": "functionalApi",
"canControlRampup": false,
"targetThreads": 0,
"enableMockServices": false,
"scriptType": "taurus",
"filename": "blazemeterscript.yaml",
"testMode": "http",
"extraSlots": 0
}
}
],
"masters": []
},
"request_id": "5ee3ea305c6c4"
}