Update test plan folder name

Available in versions: OpenText Enterprise Performance Engineering 2020 and later

Description

Updates a test plan folder name by the specified test plan ID.

URL

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

Remarks

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

HTTP method

PUT: Updates the design test plan folder name.

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:

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

Request examples:

Copy code
XML example:
PUT http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/testplan/1
Content-Type: application/xml
Body:
<TestPlanFolder xmlns="http://www.hp.com/PC/REST/API">
   <Name>Test Plan 2</Name>
</TestPlanFolder>
Copy code
JSON example:
PUT http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/testplan/1
Content-Type: application/json
Body:
{    
    "Name": "Test Plan Name Updated1"
}

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: