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

What is the best way to get a Test Cases in a Test plan in ETM?

 Hi Team,


I am working in a project where I should retrive all the test cases linked to a test plan in ETM(ELM7). I have used this as reference to query the test plan, test cases, TCER - https://sleroyblog.wordpress.com/2013/04/09/querying-rqm-40-through-oslc-and-rest-api/

This is the plan I have
  1. Get Test Plan ID from user
  2. Get Test cases
  3. extracting/parsing the data
And, At few pages, I see that we need to add oslc_config.context to header in order to get the response content properly. Is this a global config or local config?
And, I know how to get the URL of global config, but I am not sure  how to get the URL of local config. 

Please share your inputs.

0 votes

Comments



One answer

Permanent link
Have you looked at using an OSLC Query Capability for test cases?

For oslc_config.context you should be able to specify a global configuration URI or a local configuration URI.

0 votes

Comments

 Yes, I noticed the approach

rootservices -> config catalog -> configuration url.

But it returns, I don't have permission to read it, what should I do?

What do you mean by "it"?
The rootservices document?
The OSLC Service Provider Catalog?

A service provider?
Something else?

The rootservices document should be readable by everyone even without authentication. Deeper than that requires that you are an authenticated user.

 When I am using oslc.where command it is returning the response.

Thanks David.

@davidhoney, Do you see any other necessary inputs apart from configuration name and Test plan ID in order to get the Test cases contents(including content from ERM)? Please share your thoughts.

If you want people to help you with REST APIs, please provide the following information as a minimum:
  • The request method and request URI, including parameters
  • The request headers
  • The request body (for PUT or POST)
  • The response status line
  • The response headers
  • The response body


 Thanks for the info.


Do you have any suggestions for parsing API XML response in python?

showing 5 of 6 show 1 more comments

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,938

Question asked: Jul 20 '23, 6:55 a.m.

Question was seen: 1,605 times

Last updated: Jul 21 '23, 5:47 a.m.

Confirmation Cancel Confirm