Share this page

# Create a test with host attributes

## Description

Create tests with specific host attributes.

## URL

Copy code

    LoadTest/rest/domains/<domain>/projects/<projects>/tests/<testId>/attributes

## Remarks

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.

Request Example
Copy code
XML example:

    <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

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)