Open topic with navigation

# Groups

## Description

Gets or Deletes all groups from a test.

## URL

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/tests/{ID}/Groups

## Remarks

None

## HTTP Method

GET: Returns data on groups in the test.

DELETE: Removes all groups from the test.

## Request

Headers:

DELETE: None

GET: Accept: application/xml

Cookies:

Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie};
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

No request body.

Request Example

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

## Response

Headers:

DELETE: None

GET: One of:

- Content-Type: application/xml
- Content-Type: application/json

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

DELETE: None

GET: Groups data

Example

    <Groups xmlns="http://www.hp.com/PC/REST/API">
        <Group>
            <Name>login_logout</Name>
            <Vusers>10</Vusers>
            <Script>
                <ID>1</ID>
            </Script>
            <RTS>
                <Pacing>
                    <NumberOfIterations>1</NumberOfIterations>
                    <StartNewIteration Type="immediately"/>
                </Pacing>
                <ThinkTime Type="replay"/>
                <Log Type="standard">
                    <LogOptions Type="on error">
                        <CacheSize>1</CacheSize>
                    </LogOptions>
                </Log>
            </RTS>
        </Group>
    </Groups>

## See Also

tests
Groups/{name}