Purpose of Test Case
- Verification of compliance: Test cases help in the verification of compliance with guidelines and client needs.
- Improved data flow coverage: Test cases help to improve control, logic, and data flow coverage.
- Exposes flaws: Test cases help to uncover flaws and defects in the software.
- Testing will be structured: The test engineer’s job will be more convenient, simple, and, structured when test cases are developed.
- Validates customer expectations: Test cases help to validate customer requirements and expectations.
- Helps to simulate real user scenarios: Test cases help to simulate real end user’s scenarios.
Test Case vs Test Scenario
The article focuses on discussing the difference between test cases and test scenarios. Before proceeding with the difference let’s first discuss each term in detail.
Test cases are the set of actions to execute and test a particular feature of the application on the other hand test scenarios are any functionality that can be tested. Test cases are derived from test scenarios whereas test scenarios are derived from SRS, BRS, etc. Test cases help in the exhaustive testing of the application and test scenarios help in the agile way of testing the application. Test cases are focused on how to test and what to test on the other hand test scenarios are focused on what to test. Test cases require more time and resources as compared to test scenarios. Test cases are low-level actions and test scenarios are high-level actions.