How To
Summary
Some Rational Quality Manager (RQM) users have built custom tools to automate creation of Test Artifacts. The content presented here is to help create references to requirement artifacts in Rational DOORS Next Generation (RDNG) while the Test Artifacts are being created using such automated tools.
If you are creating test cases with the details using REST API in RQM, you may come across a necessity to reference a requirement artifact while creating or updating. This can be achieved with the use of OSLC APIs as they are used for cross-application linking unlike the REST API, which is specific for the application.
Steps
Here are the manual steps you could follow to add the requirements link to the test artifact:
1. Get the OSLC link to the project by performing a GET on
For example: https://<HOST>:<PORT>/qm/oslc_qm/catalog (https://<HOST>:<PORT>/qm/oslc_qm/catalog)
2. Add /resources/com.ibm.rqm.planning.VersionedTestCase to the OSLC link of the project obtained in step (1)
For example: https://<HOST>:<PORT>/qm/oslc_qm/contexts/_-cHYcHL3EemS37WyeOZZ7w/resources/com.ibm.rqm.planning.VersionedTestCase (https://%3CHOST%3E:%3CPORT%3E/qm/oslc_qm/contexts/_-cHYcHL3EemS37WyeOZZ7w/resources/com.ibm.rqm.planning.VersionedTestCase)
3. Perform a GET on the link created in step (2) to get the OSLC link to the test case
4. Perform GET on the OSLC link of the Test Case obtained in step (3)
5. Add <oslc_qm:validatesRequirement rdf:resource="OSLC link to the RM artifact" /> in <oslc_qm:TestCase>....</oslc_qm:TestCase> block
6. Perform a PUT operation on the OSLC link of Test Case obtained in step (3) with the content edited in step (5).
You can use the preceding procedure and perform a POST with the XML data using OSLC API to automate the steps in your custom tool.
Additional Information
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
31 October 2019
UID
ibm11098699