Share this page

# Get or delete all groups in test

## Description

Gets or Deletes all groups from a test.

## URL

Copy code

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

  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:

No request body.

Request examples:

Copy code
XML 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};

Copy code
JSON example:

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

## Response

Headers:

- DELETE: None

- GET:

  One of:

  - Accept: application/xml

  - Accept: application/json

Cookies:

None

HTML return code:

One of the HTTP return codes

HTML body:

- DELETE: None

- GET: Groups data

Response examples:

Copy code
XML example - GET:

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

Copy code
JSON example - GET:

    [
        {
            "Name": "demo_script_new",
            "Vusers": 1.0,
            "Script": {
                "ID": 175,
                "ProtocolType": "Web - HTTP/HTML"
            },
            "CommandLine": null,
            "Hosts": [
                {
                    "Name": "lreh2-nightly-mssql-clean.lr.admlabs.aws.swinfra.net",
                    "Type": "specific"
                }
            ],
            "RTS": {
                "Pacing": {
                    "NumberOfIterations": 1,
                    "StartNewIteration": {
                        "Type": "immediately"
                    }
                },
                "ThinkTime": {
                    "Type": "replay"
                },
                "Log": {
                    "Type": "disable"
                },
                "Name": null,
                "JavaVM": null,
                "JMeter": null,
                "Selenium": null
            },
            "GlobalCommandLine": null,
            "GlobalRTS": null
        }
    ]

See also:

- Create a test
- Add, update, or remove a group from a test

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)