In this article we will learn the fundamental concepts on tracing (mapping) the requirements to the other software artifacts or deliverables in the SDLC model and how to leverage HPQC for mapping the tests to the requirements.
There are two options to do this.
- When you enter a requirement in the “Requirements†module, you can link it to a test through “Test Coverage†sub module, provided a relevant test exists.
- When you write a test in the “Test Plan†module, you can link it to a requirement through “Req Coverage†sub module, provided a relevant requirement exists.
Option 2 explained in detail (i.e., mapping tests to functional requirements in “Test Planâ€)
Step 1. In the Test plan, navigate to the required test for which you need to map the requirement.
Step 2. Select “Req Coverage†tab.
Step 3. Click “Select Req†button to bring the requirements tree structure on to the right pane.
Step 4. Expand the Requirements folder and select the relevant requirement
Step 5. There are four ways you can map a requirement to the selected test
a. Right click and select “Add to Coverage (Without Children)†from the pop-up menu
b. Click “Add to Coverage (Without Children)†button
c. Hold left mouse control and drag the requirement on to the coverage grid. (Coverage Grid is the space containing “Entity Name†and “Req Descriptionâ€
d. Double click the requirement.
Best Practice: Enter the requirements into HPQC first, write tests relevant to those requirements and use option 2 to link each of the tests to the relevant requirements.
NOTES
- Use the “Add to Coverage†arrow and choose “Add to Coverage (Include Children)†to add the requirement, in situations where you are sure that a single test can be mapped to a requirement group. (e.g., if there is a requirement group called “Authorised User Requirements†which will have two sub requirements such as, login to the Order Management System and create an order, then a test called “Authorised User Test†can be mapped to the entire requirement group).
- By default, the coverage is possible for the following requirement types: Functional, Testing, and Undefined.
very gggooooooooooddddd, stuff
EXCELLANT AND NICE
Hello,
Thank you for creating the visual tutorial.
I have few queries regarding the test case to requirement mapping:
1. Can we use excel add-in to automate the test cases to requirements mapping?
2. Can we create some macro which automatically does the mapping?
3. Do we have any feature in QC which does this mapping automatically?
Regards,
Anand
One of best explanation i have ever seen. Thank you.
can we map requirement with test coverage automatically? like a batch? rather than manual selection, any suggestion pls.
Really Awesome…!!!
Thanks
Can Requirements listed in “Req Coverage” tab be sorted? Or, at least write workflow to change the default order?
I have the same question as well, Is ther any way we can automate the linkage btw test and reqirement.
How to map test case with requirement coverage automatically? like a batch? rather than manual selection, any suggestion please.
I too have the same question… how can we map requirement to test cases automatically.