Share this page

# Create a test set

## Description

Creates a new test set.

## URL

Copy code

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

## Remarks

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

## HTTP Method

POST: Creates the test set.

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

An XML containing the name and parent ID of the test set in which to create the test instance.

Element | Description
--- | ---
TestSetName | Name of the test set.
TestSetParentId | ID of the test set folder. This can be taken from {project name} schema in Database > CYCL_FOLD table > CF_ITEM_ID column.
TestSetComment | Comment (Optional).

Request Example
Copy code

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

    <TestSet xmlns="http://www.hp.com/PC/REST/API">
       <TestSetName>t1</TestSetName>
       <TestSetComment>demo test set</TestSetComment>
       <TestSetParentId>1</TestSetParentId>
    </TestSet>

## Response

Headers:

None

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

None

## See Also

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