Request URL

POST https://api.dotcom-monitor.com/config_api_v1/StressTest/CloneUpdateScript

Create a new Web Application load test with an updated Every Step script by cloning an existing test. You can either modify the source EveryStep script or create a new one from scratch. 

Query Parameters

Field Type Required Description

id

string

true

The unique id of a load test you want to clone and edit. Refer to StressHistory_Seq_ID to select an id of a source test.

Request Body

LoadView API accepts binary files uploaded with a request body. To upload an EveryStep script along with your request to LoadView:

  1. Create or edit an EveryStep script using EveryStep Scripting Tool.
  2. Download the script to your computer and save to a dmuv/dmes file.
  3. In an API client, select to send the dmuv/dmes file as a binary file in the request body.
Request Example
curl --location --request POST "https://api.dotcom-monitor.com/config_api_v1/StressTest/CloneUpdateScript?id=32456" ^
--header "Content-Type: application/octet-stream" ^
--header "Cookie: DANA-AUTH-API-COOKIE=36963187d29c49718deb07418409b044" ^
--data "@/C:/Users/dm_admin/Downloads/web-everystep-script.dmes"

Success Response

Example response
{
    "DevicePlatform": "UserView",
    "PlanType": "StaticPlan",
    "Steps": [
        {
            "StepType": "Start",
            "UsersOrSpeed": 2,
            "DurationSec": 0,
            "StepRole": "UserInitiated"
        },
        {
            "StepType": "Increase",
            "UsersOrSpeed": 1,
            "DurationSec": 60,
            "StepRole": "UserInitiated"
        }
    ],
    "Status": "SubmittingTestRequest",
    "ID": 163565,
    "Name": "My Test 1",
    "UserName": null,
    "dynamicCurve_StartUsers": 0,
    "dynamicCurve_MaxUsers": 0,
    "dynamicCurve_MaxTestDuration": 0,
    "goalBasedCurve_TransactionsGoal": 0,
    "goalBasedCurve_Duration": 0,
    "goalBasedCurve_MaxUsers": 0,
    "goalBasedCurve_StartUsers": 0,
    "goalBasedCurve_AdjustmentRate": 0,
    "static_MaxUsers": 3,
    "static_TransactionsPerMin": 0,
    "static_Duration": 60,
    "VUD_UsersPerAgent": 5
}

For the field descriptions, please see LoadView API: Get Test Settings