Share this page

# Get all test sets

## Description

Gets all existing test sets in the project.

## URL

Copy code

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

## HTTP method

GET: Returns the test sets 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:

None

Request examples:

Copy code
XML example:

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

Copy code
JSON example:

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

## Response

Headers:

One of:

- Accept: application/xml

- Accept: application/json

Cookies:

None

HTML return code:

One of the HTTP return codes

HTML body:

The XML or JSON containing the test sets.

Response examples:

Copy code
XML example:

    <TestSets xmlns="http://www.hp.com/PC/REST/API">
        <TestSet>
            <TestSetName>ts_21-03-2024-10_31-PM</TestSetName>
            <TestSetParentId>1</TestSetParentId>
            <TestSetID>100</TestSetID>
        </TestSet>
        <TestSet>
            <TestSetName>TS_jRtvS</TestSetName>
            <TestSetParentId>2</TestSetParentId>
            <TestSetID>101</TestSetID>
        </TestSet>
        <TestSet>
            <TestSetName>alex_t111112</TestSetName>
            <TestSetParentId>1</TestSetParentId>
            <TestSetID>102</TestSetID>
        </TestSet>
        <TestSet>
            <TestSetName>lre_testset</TestSetName>
            <TestSetParentId>1</TestSetParentId>
            <TestSetID>103</TestSetID>
        </TestSet>
    </TestSets>

Copy code
JSON example:

    [
       {
          "TestSetID": 100,
           "TestSetName": "ts_25-03-2024-11_25-PM",
           "TestSetComment": null,
           "TestSetParentId": 1
        },
        {
            "TestSetID": 101,
            "TestSetName": "TS_eIMRY",
            "TestSetComment": null,
            "TestSetParentId": 2
         }
    ]

See also:

- Create or get all folders in a test set
- Create a test set
- 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)