Create a test with host attributes
Description
Create tests with specific host attributes.
URL
LoadTest/rest/domains/<domain>/projects/<projects>/tests/<testId>/attributesRemarks
The data can be passed as XML or JSON containing the equivalent data.
HTTP method
POST: Manage the host attributes for tests.
Request
Headers:
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:
XML or JSON describing the attributes and locations.
<Test xmlns="http://www.hp.com/PC/REST/API">
<Name>dw16</Name>
<TestFolderPath>Subject\devweb</TestFolderPath>
<Content>
<HostAttributes>
<HostName>LG1</HostName>
<Attributes>Host memory:High</Attributes>
...Response
Headers:
None
Cookies:
None
HTML return code:
One of the HTTP return codes
HTML body:
None

