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
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.
|
One answer
David Honey (1.8k●1●7)
| 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?
See:
https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/discovery.html https://docs.oasis-open-projects.org/oslc-op/query/v3.0/os/oslc-query.html
For
oslc_config.context you should be able to specify a global configuration URI or a local configuration URI.
I have already responded to your other question https://jazz.net/forum/questions/284891/how-to-get-the-url-of-local-configuration-in-etm
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?
What do you mean by "it"?
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:
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?
showing 5 of 6
show 1 more comments
|
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.
Comments
I've already responsed to your other question https://jazz.net/forum/questions/284891/how-to-get-the-url-of-local-configuration-in-etm