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
- Get Test Plan ID from user
- Get Test cases
- 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.
One answer
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
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
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
Comments
David Honey
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 20 '23, 6:59 a.m.I've already responsed to your other question https://jazz.net/forum/questions/284891/how-to-get-the-url-of-local-configuration-in-etm