Returns or deletes a script by ID

Description

Returns or deletes a script by the specified script or zip ID.

URL

Copy code
Script ID:
/LoadTest/rest/domains/{domainName}/projects/{projectName}/scripts/{ID}
Copy code
Zip ID:
/LoadTest/rest/domains/{domainName}/projects/{projectName}/scripts/{ID}/zip

Remarks

None

HTTP Method

GET: scripts/{ID} returns the script metadata. scripts/{ID}/zip returns the zip archive of the script.

DELETE: Deletes the script.

Request

Headers:

Content-Type: application/xml

Cookies:

Version 2020 (or later)

LWSSO_COOKIE_KEY={LwssoCookie};

Versions earlier than 2020

LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

GET: No request body.

DELETE: No request body.

Response

Headers:

One of:

  • Content-Type: application/xml
  • Content-Type: application/json

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

GET: Returns the data on the entity in the script entity XML or equivalent JSON string.

DELETE: No body returned.

See Also

Upload or retrieve scripts
Create a test