December 3, 2023
What is RTM? Types of Traceability with an example of Facebook with sample format

In software development, testing is a critical phase to ensure the quality and functionality of the product. To achieve this, testers need to meticulously track and verify that all requirements are thoroughly tested. This is where the Requirements Traceability Matrix (RTM) comes into play. The RTM is a valuable tool that helps establish a clear link between requirements and test cases, ensuring comprehensive test coverage and efficient testing processes. In this blog, we will explore what RTM is, the types of traceability, and an example of RTM with respect to Facebook’s login page.

What is RTM?

RTM, or Requirements Traceability Matrix, is a document that helps maintain the relationship between requirements and the corresponding test cases. It acts as a roadmap for testers, guiding them to ensure that all requirements are thoroughly tested and validated during the testing phase. The RTM enhances traceability, making it easier to track the progress of testing, identify coverage gaps, and ensure that no requirement is left untested.

Types of Traceability:

  1. Forward Traceability:

Forward traceability involves linking requirements to the respective test cases that validate those requirements. It ensures that each requirement has a corresponding test case, thereby providing a clear understanding of the testing progress in terms of requirements coverage.

  1. Backward Traceability:

Backward traceability establishes a link between test cases and the requirements they cover. This type of traceability ensures that all test cases are driven by specific requirements, enabling easy verification of test coverage.

  1. Bi-Directional Traceability:

Bi-directional traceability combines both forward and backward traceability. It establishes a two-way link, allowing testers to track requirements and test cases in both directions. This comprehensive approach helps maintain a complete picture of the testing process.

RTM Example with Respect to Facebook Login Page:

Let’s explore how an RTM can be structured for testing the login functionality of the Facebook website.


| Requirement ID | Requirement Description | Test Case ID(s) |

| RQ-001 | User should be able to log in with a valid username and password | TC-001 | | RQ-002 | User should not be able to log in with an invalid username | TC-002 | | RQ-003 | User should not be able to log in with an invalid password | TC-003 | | RQ-004 | User should be able to reset password | TC-004, TC-005 | | RQ-005 | User should be able to log out | TC-006 | | RQ-006 | User should be able to stay logged in after closing the browser | TC-007 | | RQ-007 | User should receive an error message for incorrect login attempts | TC-008, TC-009 | | RQ-008 | User should be able to log in with case-insensitive username | TC-010 | | RQ-009 | User should see a “Remember Me” checkbox on the login page | TC-011 | | RQ-010 | User should be able to login using Facebook credentials | TC-012 |

Example of RTM for Facebook:

Let’s create a simple RTM for the Facebook login functionality as an example. We will use five test cases for illustration purposes. In a real scenario, you would include a more comprehensive list of test cases.

-------------------------------------------------------------------
| Requirement ID | Requirement Description | Test Case ID(s)       |
-------------------------------------------------------------------
| RQ-001         | User should be able     | TC-001               |
|                | to log in with a valid |                      |
|                | username and password   |                      |
-------------------------------------------------------------------
| RQ-002         | User should not be able | TC-002               |
|                | to log in with an       |                      |
|                | invalid username        |                      |
-------------------------------------------------------------------
| RQ-003         | User should not be able | TC-003               |
|                | to log in with an       |                      |
|                | invalid password        |                      |
-------------------------------------------------------------------
| RQ-004         | User should be able     | TC-004, TC-005       |
|                | to reset password       |                      |
-------------------------------------------------------------------
| RQ-005         | User should be able     | TC-006               |
|                | to log out              |                      |
-------------------------------------------------------------------
RTM stands for Requirements Traceability Matrix. It is a document used in software testing to track the 

In this example, we have identified five requirements related to the Facebook login functionality, along with the test case(s) that cover each requirement. For instance:

  • Requirement RQ-001 states that a user should be able to log in with a valid username and password. This requirement is covered by Test Case TC-001.
  • Requirement RQ-002 states that a user should not be able to log in with an invalid username, and this requirement is covered by Test Case TC-002.

Similarly, the other requirements have corresponding test cases associated with them.

In a real RTM, you would have a more detailed list of requirements and test cases, covering various scenarios and functionalities of the application. The RTM helps ensure that all requirements are tested and that test coverage is comprehensive. It is a valuable tool for project management and quality assurance teams to track progress during the testing phase.

Here’s an RTM with 10 requirements and their corresponding test cases for the Facebook login functionality:

-------------------------------------------------------------------------------------------------------------
| Requirement ID | Requirement Description                                               | Test Case ID(s)         |
-------------------------------------------------------------------------------------------------------------
| RQ-001         | User should be able to log in with a valid username and password       | TC-001                 |
| RQ-002         | User should not be able to log in with an invalid username             | TC-002                 |
| RQ-003         | User should not be able to log in with an invalid password             | TC-003                 |
| RQ-004         | User should be able to reset password                                  | TC-004, TC-005         |
| RQ-005         | User should be able to log out                                         | TC-006                 |
| RQ-006         | User should be able to stay logged in after closing the browser         | TC-007                 |
| RQ-007         | User should receive an error message for incorrect login attempts       | TC-008, TC-009         |
| RQ-008         | User should be able to log in with case-insensitive username            | TC-010                 |
| RQ-009         | User should see a "Remember Me" checkbox on the login page              | TC-011                 |
| RQ-010         | User should be able to login using Facebook credentials                | TC-012                 |
-------------------------------------------------------------------------------------------------------------

In this RTM, we have 10 requirements related to the Facebook login functionality, and each requirement is mapped to the relevant test case(s). For example:

  • Requirement RQ-001 states that a user should be able to log in with a valid username and password. This requirement is covered by Test Case TC-001.
  • Requirement RQ-002 states that a user should not be able to log in with an invalid username, and this requirement is covered by Test Case TC-002.

Conclusion:

The Requirements Traceability Matrix (RTM) is an indispensable tool that enhances the efficiency and effectiveness of the testing process. By establishing a clear link between requirements and test cases, the RTM ensures that all aspects of the software are thoroughly tested, and no critical requirement is left unverified. The forward, backward, and bi-directional traceability provided by RTM facilitates better project management and quality assurance, ultimately leading to a successful and reliable software product. When implementing RTM, the testing team can confidently navigate through the testing phase, knowing that all requirements are met, and potential issues are addressed, resulting in a robust and user-friendly application like Facebook’s login page.

Visit Website

Youtube Channel

Contact US

THANKS FOR YOUR PRECIOUS TIME

EPEDAGOGUE GLOBAL PVT LTD

YOUR MENTOR

PRAKASH CHAND THAPLIYAL

Leave a Reply

Your email address will not be published. Required fields are marked *