ETL Traceability Matrix
ETL Traceability Matrix
Traceability matrix is where the test plan author,generally the TL,reviews the testcases prepared by test
engineers.Here the TL verifies whether the testcases written cover all the Business Requirements or not.He also
rejects/deletes extra/not required testcases.
BUSINESS REQUIREMENTS S/W REQUIREMENTS TESTCASES
1 – BRS(Business Requirement 1.01 – S/W requirement specification 1.01.01 - testcase A
Specifiaction) 1.01.02 - testcase B
1.01.03
In our company, the test lead or tester is responsible for mapping requirements to test cases.
What is Traceability matrix? Why it is used? Can u tell me the architecture of that?
Ans)
Traceability Matrix - mapping between User Requirements and Test Cases
T.M:
Traceability Matrix – A document
showing the relationship between Test Requirements and Test Cases. From
Traceability Matrix, we can check that which requirements are covered in which
test cases and "particular test case covers which requirements".
In this matrix, we can also cover that a particular requirement is covered in
which section of code etc.
In this matrix, the rows will have the requirements. For every document {HLD,
LLD etc}, there will be a separate column. So, in every cell, we need to state,
what section in HLD addresses a particular requirement. Ideally, if every
requirement is addressed in every single document, all the individual cells must
have valid section ids or names filled in. Then we know that every requirement
is addressed. In case of any missing of requirement, we need to go back to the
document and correct it, so that it addressed the requirement.
In a nutshell, requirements traceability is the process of ensuring that one or
more test cases address each requirement.
T.M:
The concept of Traceability Matrix is very important from the Testing perspective. It is document which maps
requirements with test cases. By preparing Traceability matrix, we can ensure that we have covered all the required
functionalities of the application in our test cases.
What is Traceability Matrix from Software Testing perspective?
The concept of Traceability Matrix is very important from the Testing perspective. It is document which maps
requirements with test cases. By preparing Traceability matrix, we can ensure that we have covered all the required
functionalities of the application in our test cases. Some of the features of the traceability matrix:
It is a method for tracing each requirement from its point of origin, through each development phase and
work product, to the delivered product
Can indicate through identifiers where the requirement is originated, specified, created, tested, and
delivered
Will indicate for each work product the requirement(s) this work product satisfies
Facilitates communications, helping customer relationship management and commitment negotiation
Traceability matrix is the answer of the following basic questions of any Software Project:
How is it possible to ensure, for each phase of the lifecycle, that I have correctly accounted for all the
customer’s needs?
How can I ensure that the final software product will meet the customer’s needs? For example I have a
functionality which checks if I put invalid password in the password field the application throws an error message
“Invalid password”. Now we can only make sure this requirement is captured in the test case by traceability matrix.
Some more challenges we can overcome by Traceability matrix:
Demonstrate to the customer that the requested contents have been developed
Ensure that all requirements are correct and included in the test plan and the test cases
Ensure that developers are not creating features that no one has requested
The system that is built may not have the necessary functionality to meet the customers and users needs and
expectations. How to identify the missing parts?
If there are modifications in the design specifications, there is no means of tracking the changes
If there is no mapping of test cases to the requirements, it may result in missing a major defect in the system
The completed system may have “Extra” functionality that may have not been specified in the design
specification, resulting in wastage of manpower, time and effort.
If the code component that constitutes the customer’s high priority requirements is not known, then the
areas that need to be worked first may not be known thereby decreasing the chances of shipping a useful product on
schedule
A seemingly simple request might involve changes to several parts of the system and if proper Traceability
process is not followed, the evaluation of the work that may be needed to satisfy the request may not be correctly
evaluated
Step by step process of creating a Traceability Matrix from requirements:
step1: Identify all the testable requirements in granular level from various requirement specification documents.
These documents vary from project to project. Typical requirements you need to capture are as follows:
Used cases (all the flows are captured)
Error Messages
Business rules
Functional rules
SRS
FRS
So on…
example requirements: login functionality, generate report, update something etc.
step2: In every project you must be creating test-cases to test the functionality as defined by the requirements. In
this case you want to extend the traceability to those test-cases. In the example table below the test-cases are
identified with a TC_ prefix.
Put all those requirements in the top row of a spreadsheet. And use the right hand column of the spreadsheet to jot
down all the test cases you have written for that particular requirement. In most of the cases you will have multiple
test cases you have written to test one requirement. See the sample spreadsheet below:
Sample traceability matrix
REQ1 REQ1 REQ1 REQ1 REQ1 REQ1 REQ1 REQ1 REQ1 REQ1 REQ1 REQ1 REQ1 REQ1
Requirement Reqs
UC UC UC UC UC UC UC UC UC UC UC TECH TECH TECH
Identifiers Tested
1.1 1.2 1.3 2.1 2.2 2.3.1 2.3.2 2.3.3 2.4 3.1 3.2 1.1 1.2 1.3
Test plan is in high demand. Ya it should be! Test plan reflects your entire project testing schedule and
approach. This article is in response to those who have demanded sample test plan.
In my previous article I have outlined Test plan Index. In this article I will elaborate that index to what
each point mean to do. So this Test plan will include the purpose of test plan i. e to prescribe the scope,
approach, resources, and schedule of the testing activities. To identify the items being tested, the
features to be tested, the testing tasks to be performed, the personnel responsible for each task, and
the risks associated with this plan.
Find what actually you need to include in each index point.
I have included link to download PDF format of this test plan template at the end of this post.
Test Plan Template:
(Name of the Product)
Prepared by:
(Names of Preparers)
(Date)
TABLE OF CONTENTS
1.0 INTRODUCTION
2.0 OBJECTIVES AND TASKS
2.1 Objectives
2.2 Tasks
3.0 SCOPE
4.0 Testing Strategy
4.1 Alpha Testing (Unit Testing)
4.2 System and Integration Testing
4.3 Performance and Stress Testing
4.4 User Acceptance Testing
4.5 Batch Testing
4.6 Automated Regression Testing
4.7 Beta Testing
5.0 Hardware Requirements
6.0 Environment Requirements
6.1 Main Frame
6.2 Workstation
7.0 Test Schedule
8.0 Control Procedures
9.0 Features to Be Tested
10.0 Features Not to Be Tested
11.0 Resources/Roles & Responsibilities
12.0 Schedules
13.0 Significantly Impacted Departments (SIDs)
14.0 Dependencies
15.0 Risks/Assumptions
16.0 Tools
17.0 Approvals
1.0 INTRODUCTION
A brief summary of the product being tested. Outline all the functions at a high level.
2.0 OBJECTIVES AND TASKS
2.1 Objectives
Describe the objectives supported by the Master Test Plan, eg., defining tasks and responsibilities,
vehicle for communication, document to be used as a service level agreement, etc.
2.2 Tasks
List all tasks identified by this Test Plan, i.e., testing, post-testing, problem reporting, etc.
3.0 SCOPE
General
This section describes what is being tested, such as all the functions of a specific product, its existing
interfaces, integration of all functions.
Tactics
List here how you will accomplish the items that you have listed in the “Scope” section. For example, if
you have mentioned that you will be testing the existing interfaces, what would be the procedures you
would follow to notify the key people to represent their respective areas, as well as allotting time in
their schedule for assisting you in accomplishing your activity?
4.0 TESTING STRATEGY
Describe the overall approach to testing. For each major group of features or feature combinations,
specify the approach which will ensure that these feature groups are adequately tested. Specify the
major activities, techniques, and tools which are used to test the designated groups of features.
The approach should be described in sufficient detail to permit identification of the major testing tasks
and estimation of the time required to do each one.
1. NULL validation
2. Data type validation
requirements.
To identify the ‘orphan’ functional and system requirements. This would indicate a missing trace between
requirements
To identify the extent to which system requirements are covered from a design perspective.
To identify the functional coverage of the QA test scenarios.
To identify which design components implement a requirement.
To identify the test scenarios that will be used to verify a requirement
To analyze the impact of changing requirements on the software artifacts created in subsequent phases of the
SDLC
For Any given project, three important questions that need to be answered before embarking on any
particular requirements traceability approach are :
What needs to be traced ?
What type of linkages need to be made?
How and when and who should establish and maintain the links
What needs to be traced :
Application Components
Business Requirements
Functional Requirements
System Requirements
Design Artifacts
Testing Artifacts
Type of Links:
Forward, Backward links between requirements
Vertical links between requirements and other artifacts
Internal /External Links
Who, How and When?
Project Manager, Business Analyst, Development Lead?
Through Tools or through document linking and references
Stages in SDLC with well defined entry and exit criteria for defining the links
Link requirements to external documents/ URL’s to enhance requirement description.
Link requirements across projects
Get a full view of how requirements are related to each other through “Matrix” view or “Tree” view
Get full description of the linked requirements through click of a button
Prevent unpleasant surprise through real time alerts when requirements change.
Traces are automatically marked suspect when requirements change
Get full description of the change by comparing versions of the requirements
Generate functional coverage reports to reflect requirements which have not been addressed in the project
Generate test coverage reports to identify requirements which have not been taken into account for testing
purposes
Features:
Automatic conversion of links to suspect when requirements change
Trigger alerts to concerned parties when requirements change
Facility to identify the change in the request at click of a button
Features:
Identify Orphan requirements or hanging requirements (Dark Bands)
Identify implied links (shown in red circle)
Generate links on the fly (Not shown)
Features:
Trace to requirements in external projects
Trace to artifacts in configuration management tools
Trace to artifacts in design tools