How to get baseline and versions of specific Test Plan, Test case and Requirement
Hello Everyone,
I would like to know the OSLC API or reportable rest API to fetch baseline or versions of Test plan ,Test cases and Requirement, based upon identifier or title of Artifacts.
Kindly help at the earliest.
Thanks and Regards,
Jyoti
One answer
Hi Jyoti
For Reportable Rest you'll have to know the configuration URI then use the QM reportable REST API providing that configuration as parameter oslc_config.context. See https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op
For OSLC the TL;DR version is: it's very similar to the way you find stuff in DOORS Next.
You'll have to locate the QM project in the oslc catalog, get the default component creation factory which will give you the components, and get from the component URI to retrieve URLs for configurations in the component - this is pretty much the same discovery sequence as for DOORS Next.
Presumably you'll scan the configurations of the component to find the one with the name you want, and find its configuration URI - again this is basically the same as for DNG.
Or it should work to provide a global configuration URI rather than local - to find the GC URI you can use GCM API - documentation is provided on your server in web pages below https://SERVER:PORT/gc/doc
One difference from DN where there's only one query capability across all resources, is that EWM/RQM has separate query capability for TestCaseQuery (for test cases) and TestPlanQuery (for test plans), i.e. two queries needed - you can find these in the services.xml for the component, making sure to specify the configuration in the request.
Then provide the configuration URI as a parameter oslc_configuration.context, or as a header Configuration-Context and use OSLC Query e.g. oslc.where=dcterms:title="Title Of Thing" (fully encoded, of course) to find the test plans/test cases in that configuration and for each result URI retrieve the RDF again using the same configuration URI. The OSLC query works the same as for DOORS Next, although the detail of the format of the query results is likely to be different from DN.
Good Luck!
Ian
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Aug 06 '21, 9:42 a.m.Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Aug 09 '21, 3:51 p.m.jyoti mishra
Aug 10 '21, 4:40 a.m.jyoti mishra
Aug 10 '21, 4:41 a.m.jyoti mishra
Aug 10 '21, 4:51 a.m.Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Aug 10 '21, 11:02 a.m.