It's all about the answers!

Ask a question

How can I link a RQM Test Case and a DNG Requirement using import files


David Babuder (1514) | asked Mar 29 '16, 5:38 p.m.
We are trying to migrate a large (>500K) test cases and associated requirements to the CLM toolset, so using GUI operations to link requirements and test cases is NOT a reasonable solution for us.

We are using the 6.0 version of the CLM suite.

Problems we have solved:
I can successfully import DNG requirements in ReqIF (or csv, but that didn't provide for any linking) format. And I can put a link to a test case in the body of the requirement; however, I want it to be a "validates" type of link, not just a plain hyperlink.

I can import Test Case files via XML format, and link them to Test Scripts, if I (1) first import the XML for the Test Script and (2) then use the Atom feed to gather the Test Scripts and their data (having put a "special piece of data" in the test script) and then (3) generate the test case with a link to the correct test script.

Remaining Problem:
I was hoping to follow a similar pattern to the test scripts to either (a) import DNG requirements, and download the data that would give in the link to use in the test case, or (b) import the test cases, download data, and using that data to create a link the in requirement.
I manually created a set of linked DNG requirements and RQM test cases in an attempt to discover what data was needed.
However, the downloaded ReqIF doesn't show any value that looks like any ID associated with the test case, and the XML downloaded for the test case does not show any link for the requirement!

2 answers



permanent link
Don Yang (7.1k2189124) | answered Mar 29 '16, 7:40 p.m.
Hi, David

I remember that ReqIF does not support OSLC link before 6.0, I am not sure if there is any enhancement on that.
Based on your descriptions, you may want to check if RQMExcelImporter can help. Please review
https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter
[Linking test artifacts with existing RM requirement artifacts] section and see if that can help to achieve your goals.

If you want to give it a try, please download v6.0.1 RQMExcelImporter due to the known defect:
https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=139346

I hope this helps.

permanent link
Donald Nong (14.4k213) | answered Mar 29 '16, 8:20 p.m.
With such a huge number of artifacts to work with, I believe a custom application would be the way to go. The time and effort that you invest in the coding should be worthwhile.
https://jazz.net/library/article/1197
https://jazz.net/wiki/bin/view/Main/RqmApi

Since you've already put a hyperlink of the test case in the primary text of the requirement, the custom application just needs to loop through all the requirements, extract the test case link from the primary text, and update the test case (and the requirement) with the desired link type.

Comments
David Babuder commented Nov 11 '16, 11:28 a.m.

I was looking for how, in terms of API calls, to do this. It isn't apparent from the RQMApi as of 6.0.  Having the link to the test case, with either the internal id (uuid identifier) or the visible identifier (integer representing the instance number of the test case), and then trying to insert that into the XML for a requirement that is imported does not work.

I'm willing to work via the API rather than an XML import, but I don't see data I'm supposed to supply, and what field(s) I'm supposed to apply the data to, so that the PUT or UPDATE will correctly tie the requirement and test case together.

Your answer


Register or to post your answer.