Update test set name

Available in versions: OpenText Enterprise Performance Engineering 2020 and later

Description

Updates a test set name by the specified test set ID.

URL

Copy code
/LoadTest/rest/domains/{domainName}/projects/{projectName}/testsets/{ID}

Remarks

The test data can be passed as XML or JSON containing the equivalent data.

HTTP method

PUT: Updates the test set name.

Request

Headers:

One of the following:

  • Content-Type: application/xml

  • Content-Type: application/json

Cookies:

LWSSO_COOKIE_KEY={LwssoCookie};

Request body:

PUT: XML or JSON with the name of the test set to be updated in the test.

Request examples:

Copy code
XML example:
PUT http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/testsets/1003
Content-Type: application/xml
Body:
<TestSetxmlns="http://www.hp.com/PC/REST/API">
   <TestSetName>New Test Set Name</TestSetName>
</TestSet>
Copy code
JSON example:
PUT http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/testsets/1003
Content-Type: application/json
{    
    "TestSetName": "New Test Set Name"
}

Response

Headers:

One of:

  • Accept: application/xml

  • Accept: application/json

Cookies:

None

HTML return code:

One of the HTTP return codes

HTML body:

None

See also: