Test Plan (Create, Get all folders)

Description

Adds a new test plan folder or retrieves a list of existing test plan folders.

URL

/LoadTest/rest/domains/{domainName}/projects/{projectName}/testplan

Remarks

Body of the request should contain a resource folder description in xml.

HTTP Method

POST: Creates a test plan folder.

GET: Returns a list of all test plan folders in the body of the response.

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:

POST: An XML containing the path and name of the new folder.

The fields in the request are:

ElementDescription
Name

Under which folder the new folder should be created.

Path

Name of the new folder.

GET: 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:

The fields in the response are:

ElementDescription
Id

Unique numeric identifier.

ParentId

The Id of the parent folder.

Name

Folder name.

FullPath

The full path of the folder, including the root (usually 'Subject') and the folder itself.

See Also

Test Plan (Delete test plan folder)
Test Plan (Update test plan folder name)