Create a test

Description

Creates a test.

URL

/LoadTest/rest/domains/{domainName}/projects/{projectName}/tests

Remarks

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

HTTP Method

POST: Creates the design test.

Request

Headers:

One of the following:

  • Content-Type: application/xml

  • Content-Type: application/json

Cookies:

Version 2020 (or later)

LWSSO_COOKIE_KEY={LwssoCookie};

Versions earlier than 2020

LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

An XML or JSON describing the test. For XML examples, see Test entity XML.

Response

Headers:

One of:

  • Accept: application/xml

  • Accept: application/json

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

The data on the new entity. See Test creation XML.

See Also

Test entity XML
Return, delete, or update a test by test ID
Test creation XML
Runtime Settings
Get test validity data