Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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. 


0 votes


Accepted answer

Permanent link
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

0 votes

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. 

My QM Datasources are Generic XML:

https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/schema/feed.xsd
https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/schema/qm.xsd

Note:  in RPE, testcase/requirement is marked as Depreciated, and to be removed as of RQM 4.0.   However, as you state, testcase/requirement/href appears to still contain valid data. 

I created a REST datasource for DNG.  Using:

https://server:port/rm/publish/text?metadata=schema

url set to

href.replace( "/resources/", "/publish/text?resourcesURI=" )

The generator times out:

https://server:port/rm/publish/text?resourcesURI=_Z0OBEOxVEeS4DdzxJpfFKg&fields=dataSource/artifact/(title%7C@itemId)

Same in a browser. Is the datasource correct for DNG? 

Answering myself.  I had a typo.  The correct script is:

href.replace( "/resources/", "/publish/text?resourceURI=" )

the datasource appears to be much slower though.  The document takes quite some time to be generated when using this REST Datasource. 

Thanks for you hlep

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,016

Question asked: May 29 '15, 5:07 p.m.

Question was seen: 5,402 times

Last updated: Jun 02 '15, 9:27 a.m.

Related questions
Confirmation Cancel Confirm