A group in a test.
/LoadTest/rest/domains/{domainName}/projects/{projectName}/tests/{ID}/Groups/{group name}
Adds a group to a test, deletes a group from a test, gets data on group, or updates the data of an existing group in the test.
PUT: If the group exists in the test, the group data is updated. If not, a new group is added. The data can be passed as XML or as JSON containing the equivalent data.
GET: Gets the data on the group.
PUT: Adds or updates the group.
DELETE: Removes the group from the test.
Headers:
PUT, one of:
GET: One of:
Cookies:
LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};
Request Body:
GET: No request body.
DELETE: No request body.
PUT: An XML describing the data to be updated in the test, or the equivalent in JSON format. See test entity XML
PUT http://<PcServer>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/tests/1/Groups/{group name} Content-Type: application/xml Cookie: LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie}; <Group>
<Vusers>30.0</Vusers>
<Name>group1</Name>
<Script>
<ID>2</ID>
</Script>
<RTS>…See the Run-time Settings XML...</RTS>
<!-- Include this section only if the schedule is by group. See tests and test entity XML. --> <Scheduler>…...</Scheduler>
</Group>
Headers:
None
Cookies:
None
HTML Return Code:
See the HTTP Return Codes
HTML Body:
PUT, DELETE: None
GET: The data on the group.
<Group xmlns="http://www.hp.com/PC/REST/API"> <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>
|