RPE: In a Test Case document, how do you show linked requirements?
![]()
I need to create test case documents in RPE. These documents need to show the requirements a test case validates. I have the document template configured, it is just missing the requirement information.
In RQM 5.0, using the QM datasource, testcase/requirement is depreciated (it does not return anything). We have test cases linked to one or more requirement artifacts in DNG. I just need the artifact id and the artifact title for the test document. So my question is, how can I get the requirement information for a test case? I am thinking I may need to use a DOORS datasource, then somehow query on links "validated By", but I have found no examples on how to do that. |
Accepted answer
![]()
Hi William,
From QM data source, you CAN still get the requirements url. Please use testcase/requirement/href that will give https://server:port/rm/resources/ID. Use Script Expression to replace "/resources/" with "/publish/text?resourceURI=" and set it as the URI for Data Source Configuration element (RM data source). Also note that you should set data source type to REST (instead of generic XML) so that RPE calculates the URL to include all attributes used in the template. Another way is to traverse from DNG to RQM. In this case, you may use datasource/artifact/traceability/links/ValidatedBy from the RM resources data source to get corresponding test case details from QM. You may find https://jazz.net/library/article/1241 useful. I can share a screenshot / sample template if you face any issues. Cheers, Prasad William Geck selected this answer as the correct answer
Comments Thank you for your response. I am trying the first option, since it would probably be the most efficient. Unfortunately, I cannot get it to work. I am using RPE 1.2.1 with RQM 5.0 and DNG 5.0.
1
Answering myself. I had a typo. The correct script is:
|