Share this page

# Create or get all folders in a test set

Available in versions (Get all folders): OpenText Enterprise Performance Engineering 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 or JSON 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:

One of the following:

- Content-Type: application/xml

- Content-Type: application/json

Cookies:

Version | Cookie
--- | ---
2020 or later | LWSSO_COOKIE_KEY={LwssoCookie};
Earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request body:

- POST: XML or JSON 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 examples:

Copy code
XML example - GET:

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

Copy code
XML example - POST:

    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>

Copy code
JSON example - POST:

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

    {    "TestSetFolderName": "test_lre_testsetfolder",
         "Parent": 1
    }

## Response

Headers:

One of:

- Accept: application/xml

- Accept: 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.

Response examples:

Copy code
XML example:

    <TestSetFolders xmlns="http://www.hp.com/PC/REST/API">
        <TestSetFolder>
            <TestSetFolderId>0</TestSetFolderId>
            <Parent>-1</Parent>
            <TestSetFolderName>Root</TestSetFolderName>
        </TestSetFolder>
        <TestSetFolder>
            <TestSetFolderId>1</TestSetFolderId>
            <Parent>0</Parent>
            <TestSetFolderName>tsf_gqlekzibdop</TestSetFolderName>
        </TestSetFolder>
        <TestSetFolder>
            <TestSetFolderId>2</TestSetFolderId>
            <Parent>0</Parent>
            <TestSetFolderName>TSF_cfIVX</TestSetFolderName>
        </TestSetFolder>
    </TestSetFolders>

Copy code
JSON example:

    {    "TestSetFolderId": 4,
         "Parent": 1,
         "TestSetFolderName": "test_lre_testsetfolder1"
    }

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... OpenText™ Enterprise Performance Engineering API Reference OpenText™ Enterprise Performance Engineering All View Local Help Center View Online Help Center(Undefined variable: _rscC_Basic_Variables.VersionLabel)