Open topic with navigation

# testInstances (Get all test instances for TestID)

Available in versions: 12.56 and later

## Description

Gets all test instances in the project by the specified TestID.

## URL

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/testInstances?query={testid["{test_id}"]}

## HTTP Method

GET: Returns the test instances in the body of the response.

## Request

Headers:

Accept: application/xml

Cookies:

Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie};
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

None

Request Example

    GET http://<LRE_Server>/LoadTest/rest/domains/MyDomain/projects/MyProject/testInstances?query={testid["2"]}

## Response

Headers:

Content-Type: application/xml

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

The XML containing the test instances.

## See Also

testInstances (Create new instance in test set)