Duplicate a Test

API Explorer: /tests/{testId}/duplicate

To duplicate a test suite, a testId is required. The sample code duplicates the test suite with the testId of 1234567. Use the actual ID value for the test suite to return the detail of that test suite.

If you do not know the testId of the test suite to duplicate, use List Tests to return a list of your created test suites.

Duplicate a Test

curl 'https://a.blazemeter.com/api/v4/tests/1234567/duplicate'

Duplicate a Test Response Attributes

For the all the supported attributes, see the The Test Object.

Response201 Created

{
    "api_version": 4,
    "error": null,
    "result": {
        "id": 2345678,
        "isNewTest": true,
        "lastRunTime": 1599568309,
        "name": "Assertions in V4 - Copy",
        "userId": 123456,
        "creatorClientId": "gui",
        "overrideExecutions": [
            {
                "concurrency": 10,
                "executor": "jmeter",
                "locations": {
                    "us-east4-a": 10
                },
                "locationsPercents": {
                    "us-east4-a": 100
                },
                "rampUp": "1m",
                "steps": 0,
                "holdFor": "59m",
                "throughput": 10
            }
        ],
        "executions": [
            {
                "concurrency": 10,
                "usersNotConfigured": false,
                "holdFor": "59m",
                "durationIsNotConfigured": false,
                "rampUp": "1m",
                "steps": 0,
                "throughput": 10,
                "locations": {
                    "us-east4-a": 10
                },
                "locationsPercents": {
                    "us-east4-a": 100
                },
                "executor": "jmeter",
                "scenario": "default-scenario-123456"
            }
        ],
        "hasThreadGroupsToOverride": false,
        "shouldSendReportEmail": false,
        "dependencies": [],
        "created": 1599840080,
        "updated": 1599840080,
        "projectId": 123456,
        "configuration": {
            "type": "taurus",
            "dedicatedIpsEnabled": false,
            "canControlRampup": false,
            "targetThreads": 300,
            "executionType": "taurusCloud",
            "enableJMeterProperties": true,
            "enableFailureCriteria": true,
            "enableMockServices": false,
            "enableLoadConfiguration": true,
            "scriptType": "jmeter",
            "threads": 300,
            "filename": "my-script.jmx",
            "testMode": "script",
            "extraSlots": 0,
            "plugins": {
                "remoteControl": [
                    {
                        "key": "myProperty",
                        "value": "aValue"
                    }
                ],
                "jmeter": {
                    "version": "auto",
                    "consoleArgs": "",
                    "enginesArgs": ""
                },
                "thresholds": {
                    "thresholds": [
                        {
                            "field": "responseTime.percentile.90",
                            "label": "200 and successfull assertion",
                            "op": "gt",
                            "stopTestOnViolation": true,
                            "value": "2000",
                            "isEmpty": false
                        },
                        {
                            "field": "responseTime.avg",
                            "label": "I don't exixt",
                            "op": "lt",
                            "stopTestOnViolation": false,
                            "value": "44",
                            "isEmpty": false
                        }
                    ],
                    "ignoreRampup": true,
                    "fromTaurus": false,
                    "slidingWindow": true
                },
                "userExperience": {
                    "enabled": false,
                    "pages": [
                        {
                            "label": "Home",
                            "url": "https://www.demoblaze.com"
                        }
                    ]
                }
            }
        }
    },
    "request_id": "5f5b9f50963a4"
}