Follow

Migrating Tests

Description

This API enables you to move a test between projects within the same or different workspace. This function includes parameters to enter: TestID and ProjectID.

URL

https://a.blazemeter.com:443/api/v4/tests/testID

Request Parameters

Parameter Description
API-Key Identifies the user ( --user 'id:secret' ). How to get the API-Key?

cURL

curl -X PUT https://a.blazemeter.com:443/api/v4/tests/<testId> -H "Content-Type: application/json" -d '{"projectId":<projectId_number>}' --user 'id:secret'
  • Enter the value in the field "testId" = your_testId >> i.e.: "testId" = 000001
  • Enter the destination ProjectId of your destination Workspace in the section "body" in JSON format (Online JSON formatter

Example PUT Body


    "projectId":000002
}

The Test Object

The Test object contains the following parameter:

Parameter Description Modifiable
testId The unique identifier of the test. The 'Test ID'.
projectId The unique identifier of the project inside the destination workspace


Example Response

 
{
    "api_version":4,
    "error":null,
    "result":{
        "id":0000001,
        "name":"106995-TaurusTest",
        "draftId":"td_2017_05_16_17_39_45_138805_9047",
        "userId":138805,
        "created":1494981629,
        "updated":1495166353,
        "projectId":0000002,
        "lastUpdatedById":138805,
        "configuration":{
            "location":"us-central1-a",
            "type":"taurus",
            "concurrency":20,
            "javaVersion":"1.8",
            "canControlRampup":false,
            "targetThreads":20,
            "plugins":{
                "splitCSV":{
                    "enabled":false
                },
                "reportEmail":{
                    "enabled":true
                },
                "taurus":{
                    "filename":"testRunner-Support.yaml"
                }
            }
        }
    },
    "test":{
        "id":5614776,
        "name":"106995-TaurusTest",
        "draftId":"td_2017_05_16_17_39_45_138805_9047",
        "userId":138805,
        "created":1494981629,
        "updated":1495166353,
        "projectId":152580,
        "lastUpdatedById":138805,
        "configuration":{
            "location":"us-central1-a",
            "type":"taurus",
            "concurrency":20,
            "javaVersion":"1.8",
            "canControlRampup":false,
            "targetThreads":20,
            "plugins":{
                "splitCSV":{
                    "enabled":false
                },
                "reportEmail":{
                    "enabled":true
                },
                "taurus":{
                    "filename":"testRunner-Support.yaml"
                }
            }
        }
    }
}
Have more questions? Submit a request

0 Comments

Article is closed for comments.