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.
|
Accepted answer
![]()
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
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.
|
3 other answers
![]()
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
|
![]()
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. 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".
|
![]()
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.
|
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.
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?