Can we link testcase in RQM to requirement in DNG using REST APIs
Hi,
I can create a testcase using POST request to RQM but when I sent requirement details in xml request sent for test case create then Test case is created but requirement is not linked with this tc.
Is there any different method for linking TC and Req. using REST APIs ??
Can somebody help here pls.
- Regards, Deepak
One answer
Looks like you're using the RQM Reportable REST API with a RQM OSLC API property (oslc_qm:validatesRequirement ). The RQM Reportable REST API does not support linking requirements to test artifacts (see https://jazz.net/wiki/bin/view/Main/RqmApi#Requirement). Instead, use the RQM OSLC API.
Comments
Hi Abhishek,
Thank you for your response. So for example if I want to send requirement link in my POST for a test case. It won't work. Would it require to sent out a separate OSLC request ? if yes, Can I find anywhere simple case of linking a testcase with requirement.
<?xml version="1.0" encoding="UTF-8"?>
<ns2:testcase xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/"
/>
<ns2:webId>15000</ns2:webId>
<ns3:title>Tittle</ns3:title>
<ns3:description>Init text</ns3:description>
<ns2:weight>100</ns2:weight>
<ns2:estimate>0</ns2:estimate>
<ns2:suspect>false</ns2:suspect>
<ns2:category term="Functional Area" value="Module" />
<ns2:variables/>
<ns2:requirement href="https://dummy.com/rm/resources/_Fvw3UURfEeinYYCK1iDdZA" rel="validates" summary="460000: Dummy for P1 req" isSuspected="false" />
</ns2:testcase>
Thank you.
Deepak