Test case: Count average traffic in chosen area FEA204
Test Case ID | FEA204 |
Test case designer | ziyu zhang |
Creation date | 19.02.2024 |
Revising date | 01.03.2024 |
Classification | functional |
Origin | Feature 204 |
Test description / objective
-
Purpose
The purpose of this test is to ensure that the system allows users to choose an area on the traffic map, count the traffic information inside the selected area, and accurately calculate the average traffic. -
Methodology
This testing case is written before writting the codes.
'Test Driven Development Definition', which is known as TDD. It is a coding methodology where tests are written before the coding is written. Its goals are helping developers know when something breaks, where the breaks are and if the whole system is working correctly. Different from the assembly-link working flow (working-building-testing), TDD forces the developers tp prioritize tasks: step1 choose something to work on; step2 write tests that would pass if product works; step3 keep building until tests pass.
Pre-state
-
The application is installed.
-
The application is accessible.
-
Traffic data is available on the map.
-
Vector selecting tools are available.
-
The user is able to select a specific area with the provided tools.
Test Steps
Step | Verify | Some notes |
---|---|---|
1. | Navigate to traffic map | Go to the traffic map section of the application |
2. | Select an area | Use the provided tools (vectors, rectangles, or polygons) to select a specific area on the map |
3. | Initiate traffic count | Trigger the traffic counting process for the selected area |
4. | Verify traffic count | Check that the system accurately counts the traffic information within the selected area; Verify that the counted traffic data is displayed or stored appropriately. |
5. | Calculate average Traffic | Ensure that the system calculates the average traffic based on the counted data within the selected area. |
6. | Display average traffic | Confirm that the calculated average traffic is displayed to the user. |
End-State
-
The selected area is clearly defined on the map.
-
The traffic count is accurate for the chosen area.
-
The system displays or stores the counted traffic information appropriately.
-
The average traffic for the selected area is calculated and displayed.
Determination of test result (Pass / Fail Criteria)
- PASS condition:
-
The selected area is accurately defined on the map.
-
The traffic count is accurate for the chosen area.
-
The system correctly calculates and displays the average traffic.
-
The test steps are completed without critical issues.
- FAIL condition:
-
The selected area is not accurately defined on the map.
-
The traffic count is inaccurate or not performed successfully.
-
The system fails to calculate or display the average traffic.
-
Any step in the test case encounters critical errors or issues.
Additional Considerations
-
Ensure that the test is performed with different types of areas (rectangles, polygons) to cover all possibilities.
-
Validate that the average traffic is correctly calculated, considering various traffic data scenarios.
-
Check for any performance issues or delays during the traffic counting and calculation process.