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

RPE: How do I get to a test script step's associated requirement?

 I'm having problems getting my template to print the requirement associated with a specific test script step.  Any suggestions?  We use DNG for requirements.  

0 votes

Comments

 Dylan, can you be a bit more specific? What do you mean under "havin problems" and which template? Is this out of the box or custom template?


Accepted answer

Permanent link
Please find the sample template created to show testcases -> test scripts -> steps (step + expected results + requirement validated). You can use "resources" instead of "text" if you are linking test steps to DNG artifacts that are not of type "text".
You can simply use testscript/steps/step/requirement/summary, which gives the title of the requirement (at the time the link was created). The RPE template becomes simple, but if the requirement title changes, the current title may not be shown in output.

Dylan Mansour selected this answer as the correct answer

0 votes

Comments

 Thank you!  The template helps a lot, though it seems to only print the steps that have a requirement linked to them.  

 I have figured out a way to get it to print out all steps.  Thank you so much for your help :)


No. It will print all the execution steps irrespective of whether requirement linked or not. You need to add another Keyword data source, to print steps of type Keyword.
Correct. We use https://server:port/rm/publish/resources?metadata=schema to add "resources" data source schema and https://server:port/rm/publish/text?metadata=schema to add "text" schema.


3 other answers

Permanent link
 As in my template won't print out the associated requirement.  I have created a custom template that lists out Test Plan, Test Case, Test Script and Test Steps.  I would also like for the template to print out the requirement linked to each Test Step.  I have tried configuring a Requirement Data Source using testscript/steps/step/requirement as the main container.  Underneath is my data configuration.  Next is my container from my Requirements schema: dataSource/artifact followed by a paragraph with text that is dataSource/artifact/title

0 votes


Permanent link
You can get the URL of the requirement associated with the test step using step/requirement/href, which you should use to configure a data source configuration element (for DNG resources).
Note that if the RQM data source type is Generic XML, you need to explicitly append ?fields parameter while configuring data source. You can set data source type to REST, if you are using RQM 5.0 or higher.

0 votes

Comments

 Do you mean I need a container that says-


testscript/steps/step/requirement

then the text that says

testscript/steps/step/requirement/href ?

We are using RQM 5.2 and RPE 1.3




Yes. You need to insert the query to get requirement href.

 I would post a picture, but my reputation is not high enough.  Do you have a sample template that achieves this goal that I could see?  What I have does not seem to be working.

Here is my outline:

Container with query: testscript/steps/step/requirement
Data Source Config with DNG Requirements
Container with query: dataSource/artifacts
Text: dataSource/artifacts/title

This is how the template should be designed. Is the DNG artifact of "text" type? If not, you should use "resources".
Also check the data source URI used for document generation. If you are trying test case feed URL, please use
https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKEBanking/testcase?abbreviate=false


Permanent link
Dylan, I suggest that you look into updating RPE to 2.1. There has been a number of usability improvements to make life easier, plus other features that allows you to do more with RPE.

0 votes

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

Question asked: Jun 28 '16, 12:17 p.m.

Question was seen: 3,262 times

Last updated: Feb 04 '17, 5:30 p.m.

Related questions
Confirmation Cancel Confirm