Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

REST API: Query list of Test Environments for a given Test Plan

 Hi,

Given a Test Plan URL, I'd like to obtain list of associated Test Environments, with URL and Name for each Test Environments.

I know I can do it this way:
  1. GET /testplan/id to obtain list of test env URLs
  2. for each test env URL, get /configuration/id to obtain its name

However, this requires N HTTP requests just to obtain the name, I'd like to minimize amount of HTTP requests. Is there any better ways?

Note: I tried to peek at internal API, and can do the following to obtain list of test env Names of given testplan:
  1. GET ITestConfigurationRestService?configurations?testplanUUID=xxx  
However, the test env URL is not exposed in the API.

0 votes


Accepted answer

Permanent link
The URL for the Test Environment artifact is constructed by the client side script, based on the response of the ITestConfigurationRestService request. You will need to "id" (UUID) and "/Assets/AssetInstance/AssetType/name" to construct the URL for the test environment. Note that this is the web URL, not REST API.
I haven't found a way to show the id and the name of the test environment when querying the test plans using REST API either.
Rophy Tsai selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927

Question asked: Mar 25 '15, 11:40 p.m.

Question was seen: 2,666 times

Last updated: Mar 26 '15, 5:04 a.m.

Confirmation Cancel Confirm