RPE: How do I get to a test script step's associated requirement?
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.
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.
Comments
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.
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
Fariz Saracevic
FORUM MODERATOR / JAZZ DEVELOPER Feb 04 '17, 5:29 p.m.