It's all about the answers!

Ask a question

Copy requirement links in a test case via OSLC API


0
1
Jérémy Friant (10711) | asked Sep 30 '14, 11:16 a.m.
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


permanent link
Matthew Brazeau (2155) | answered Oct 03 '14, 12:01 p.m.
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
Paul Slauenwhite selected this answer as the correct answer

Comments
Paul Slauenwhite commented Oct 03 '14, 12:12 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

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



permanent link
Paul Slauenwhite (8.4k12) | answered Oct 02 '14, 7:42 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

Your answer


Register or to post your answer.