Requirements-based testing is a testing approach in which test cases, conditions and data are derived from requirements. It includes functional tests and also non-functional attributes such as performance, reliability or usability.
Stages in Requirements-Based Testing:
- Defining Test Completion Criteria - Testing is completed only when all the functional and non-functional testing is complete.
- Design Test Cases - A test case has five parameters namely the initial state or precondition, data setup, the inputs, expected outcomes and actual outcomes.
- Execute Tests - Execute the test cases against the system under test and document the results.
- Verify Test Results - Verify if the expected and actual results match each other.
- Verify Test Coverage - Verify if the tests cover both functional and non-functional aspects of the requirement.
- Track and Manage Defects - Any defects detected during the testing process goes through the defect life cycle and are tracked to resolution. Defect Statistics are maintained which will give us the overall status of the project.