Get or delete all groups in test
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:
One of the following:
Content-Type: application/xml
Content-Type: application/json
Cookies:
Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie}; |
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie}; |
Request Body:
No request body.
![Closed](../Skins/Default/Stylesheets/Images/transparent.gif)
DELETE http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/tests/1/Groups
Content-Type: application/xml
Cookie: LWSSO_COOKIE_KEY={LwssoCookie};
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
![Closed](../Skins/Default/Stylesheets/Images/transparent.gif)
<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>
[
{
"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