Linking a DOORS Requirement to an RQM Test Case via DOORS Requirement ID
One answer
First of all, you need to integrate RQM with either RRC/RDNG or DOORS in order to add any requirements to the test cases. For integrating DOORS, review the document below.
http://www-01.ibm.com/support/knowledgecenter/SSR27Q_4.0.7/com.ibm.rational.test.qm.doc/topics/t_ovw_int_rqm_doors.html
Also, adding a requirement to a test case is not as simple as adding a link. I would suggest you add a requirement using the GUI then GET the test case to see what you need to add programmatically. For example, below XML code shows the test case has a "Validate Requirement" link to the requirement "Frequency of dividend transfer".
http://www-01.ibm.com/support/knowledgecenter/SSR27Q_4.0.7/com.ibm.rational.test.qm.doc/topics/t_ovw_int_rqm_doors.html
Also, adding a requirement to a test case is not as simple as adding a link. I would suggest you add a requirement using the GUI then GET the test case to see what you need to add programmatically. For example, below XML code shows the test case has a "Validate Requirement" link to the requirement "Frequency of dividend transfer".
<rdf:Description rdf:nodeID="A0">
<rdf:subject rdf:resource="https://clm:9443/qm/oslc_qm/contexts/_ZcMRAK2SEeO_fciXVKJ7Tg/resources/com.ibm.rqm.planning.VersionedTestCase/_E7eJgK2TEeO_fciXVKJ7Tg" />
<rdf:predicate rdf:resource="http://open-services.net/ns/qm#validatesRequirement" />
<rdf:object rdf:resource="https://clm:9443/rm/resources/_b5f7b94c2d3344a9a5b465936ac50edd" />
<rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement" />
<dcterms:title>Frequency of dividend transfer</dcterms:title>
</rdf:Description>