Get all test instances by test ID

Available in versions: 12.56 and later

Description

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

URL

Copy code
/LoadTest/rest/domains/{domainName}/projects/{projectName}/testInstances?query={test-id["{test_id}"]}

HTTP method

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

Request

Headers:

Accept: application/xml

Cookies:

Version Cookie
2020 or later

LWSSO_COOKIE_KEY={LwssoCookie};

Earlier than 2020

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

Request body:

None

Request example:

Copy code
GET http://<LRE_Server>/LoadTest/rest/domains/MyDomain/projects/MyProject/testInstances?query={test-id["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.

Response example:

Copy code
<TestInstances xmlns="http://www.hp.com/PC/REST/API">
    <TestInstance>
        <TestID>178</TestID>
        <TestSetID>101</TestSetID>
        <TestInstanceID>9</TestInstanceID>
    </TestInstance>
    <TestInstance>
        <TestID>178</TestID>
        <TestSetID>103</TestSetID>
        <TestInstanceID>10</TestInstanceID>
    </TestInstance>
</TestInstances>

See also: