Copy requirement links in a test case via OSLC API
Hi,
I have a problem but I do not know how to use the OSLC API. Here it is :
I would like to copy requirements links (present in another RQM project) in a test case (in a new RQM project) via OSLC.
How to access to my test cases and particularly the requirements section ?
My research into the use of the OSLC API were not conclusive, could you give me a track start ?
thank you
Regards
Jérémy
Accepted answer
Hi Paul,
I need to PUT oslc_qm:validatesRequirement link(s) into existing Test Case(s), but I am starting with DOORS requirement ID(s) (not sure what other pertinent information I will need). I am currently using the Rqm Reportable REST API to create test cases / other artifacts, but it seems as though I will need to use OSLC to add DOORS requirements.
Do you know what other DOORS information I will need to generate the validatesRequirement link, and when you mentioned round-trip traceabiilty, is that for the DOORS side of reporting (i.e. in DOORS a requirement has a 'Vailidated By' attribute).
In reference to: https://jazz.net/forum/questions/164640/linking-a-doors-requirement-to-an-rqm-test-case-via-doors-requirement-id
Best,
-Matt
Comments
I'd recommend using the same approach as https://jazz.net/wiki/bin/view/Main/RqmApi#ScenarioCreateTip, except for the OSLC QM V2 API. Yes, you need to use the OSLC QM V2 API (see https://jazz.net/wiki/bin/view/Main/RqmApi#ResourcesFootnote7).
One other answer
Hi Jérémy,
You can use the OSLC QM V2 API to:
1. GET the TestCase resource from the first project.
2. Extract the oslc_qm:validatesRequirement link(s).
3. GET the TestCase resource from the second project.
4. Add the oslc_qm:validatesRequirement link(s).
5. PUT the TestCase resource to the second project.
Note: You will have to do the same steps for the Requirement resource to add the backlinks for round-trip traceability.
See https://jazz.net/wiki/bin/view/Main/RqmOslcQmV2Api.
You can use the OSLC QM V2 API to:
1. GET the TestCase resource from the first project.
2. Extract the oslc_qm:validatesRequirement link(s).
3. GET the TestCase resource from the second project.
4. Add the oslc_qm:validatesRequirement link(s).
5. PUT the TestCase resource to the second project.
Note: You will have to do the same steps for the Requirement resource to add the backlinks for round-trip traceability.
See https://jazz.net/wiki/bin/view/Main/RqmOslcQmV2Api.