testInstances

Description

Adds a test instance to a test set based on the specified test.

URL

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

Remarks

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

HTTP Method

POST: Creates the test instance in the test set.

Request

Headers:

One of:

Cookies:

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

Request Body:

An XML containing the test ID and the ID of test set in which to create the test instance, or the equivalent in JSON format.

Response

Headers:

One of:

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

The test ID, the test set ID, and the ID of the new test instance.

See Also

testInstances (Get all test instances for TestID)