Duplicate a Test

API Explorer: /tests/{testId}/duplicate

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

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

Duplicate a Test

curl 'https://a.blazemeter.com/api/v4/tests/1234567/duplicate' \
    -X POST \
    -H 'Content-Type: application/json' \
    --user 'api_key_id:api_key_secret'

Duplicate a GUI Functional Test Response Attributes

For the full details of all the attributes for the GUI Functional Test, you can visit The GUI Functional Test Object.

Response201 Created

{
    "api_version": 4,
    "error": null,
    "result": {
        "id": 2345678,
        "name": "API Created GUI Functional Test",
        "isNewTest": true,
        "userId": 123456,
        "created": 1577463923,
        "updated": 1577463923,
        "creatorClientId": "api",
        "overrideExecutions": [
            {
                "iterations": 1
            }
        ],
        "executions": [],
        "shouldSendReportEmail": false,
        "projectId": 123456,
        "lastUpdatedById": 123456,
        "configuration": {
            "type": "functionalGui",
            "filename": "MyTest.jmx",
            "canControlRampup": false,
            "targetThreads": 0
        }
    },
    "request_id": "5e063072e1786"
}

Duplicate an API Functional Test Response Attributes

Starting February 2022, the API Functional testing feature has been deprecated. Depending on your subscription plan, you may still be able to run existing tests but can no longer create new ones. Please use BlazeMeter API Monitoring to create and run your API Functional Tests going forward.

For the full details of all the attributes for the API Functional Test, you can visit The API Functional Test Object.

Response201 Created

{
    "api_version": 4,
    "error": null,
    "result": {
        "id": 2345678,
        "name": "API Created API Functional Test",
        "isNewTest": true,
        "userId": 123456,
        "created": 1577382114,
        "updated": 1577382115,
        "creatorClientId": "api",
        "overrideExecutions": [
            {
                "iterations": 1
            }
        ],
        "executions": [
            {
                "iterations": 1,
                "scenario": "default-scenario"
            }
        ],
        "shouldSendReportEmail": false,
        "projectId": 123456,
        "lastUpdatedById": 123456,
        "configuration": {
            "type": "functionalApi",
            "filename":"MyTest.jmx",
            "canControlRampup": false,
            "targetThreads": 0
        }
    },
    "request_id": "5e04f0e2d830d"
}