It's all about the answers!

Ask a question

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


sri K (157) | asked Jul 20 '23, 6:55 a.m.

 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.


Comments
David Honey commented Jul 20 '23, 6:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

One answer



permanent link
David Honey (1.8k17) | answered Jul 20 '23, 7:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jul 20 '23, 7:02 a.m.
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.


Comments
sri K commented Jul 20 '23, 7:28 a.m.

 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?


David Honey commented Jul 20 '23, 7:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


sri K commented Jul 20 '23, 7:35 a.m.

 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.


David Honey commented Jul 20 '23, 8:31 a.m. | edited Jul 20 '23, 8:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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



sri K commented Jul 21 '23, 5:42 a.m.

 Thanks for the info.


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


David Honey commented Jul 21 '23, 5:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
showing 5 of 6 show 1 more comments

Your answer


Register or 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.