Share this page

# Create or get all folders in a test set

Available in versions (Get all folders): LoadRunner Enterprise 2020 and later

## Description

Creates a new test set folder or retrieves a list of existing test set folders.

## URL

Copy code

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

## Remarks

The data can be passed as XML containing the equivalent data.

## HTTP Method

POST: Creates a test set folder.

GET: Returns a list of all test set 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 name and parent ID of the test set in which to create the test instance.

Element | Description
--- | ---
TestSetFolderName | Name of the test set folder.
Parent | ID of the test set folder.

GET: No request body.

Request Example - POST
Copy code

    POST http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/testsetfolders
    Content-Type: application/xml
    Cookie: LWSSO_COOKIE_KEY={LwssoCookie};

    <TestSetFolder xmlns="http://www.hp.com/PC/REST/API">
       <TestSetFolderName>My_Test_Set_Folder</TestSetFolderName>
       <Parent>11</Parent>
    </TestSetFolder>

Request Example - GET
Copy code

    GET http://<LRE_Server>/LoadTest/rest/domains/MyDomain/projects/MyProject/testsetfolders

## 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 list of all test set folders in the response.

## See Also

Create or get all folders in a test set
Create a test set
Get all test sets
Delete a test set
Update test set name

Tips to improve your search results... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)