Repository navigation
Test Planning
Sirapob Phasut edited this page Apr 18, 2025
·
22 revisions
The test is to find and identify functional errors in the implementation of the API endpoint, function, and UI Component. It is to ensure that the application satisfies its functional requirements.
-
/count,/count/<vehicle_type>Predict the number of vehicles on the road: tests for return data structure and error handling -
/flowPredicts traffic flow on the road: tests for return data structure and error handling -
/desc/*Obtain the data from the database and process for descriptive statistics: tests for return data structure.
- Verify that the Chart visualization is rendered and that the data is correctly fetched.
- Verify that all choices for the API exploration form are correct
- Option for vehicle type
- Option for time
- Option for Weather Condition
- Verify that the frontend can call the Backend server correctly
- Unit Test implemented to verify correctness of individual functions on both frontend and backend, of which focus on internal logic.
- Verify that the frontend can generate the time option correctly
- Verify that the frontend can generate color for the chart without duplication and with the correct number of colors
- Verify that the frontend can format time from the option to the RFC3339 format with GMT + 7
- Users view the line chart to see traffic flow and vehicle counts over time.
- UI_HomePage_01 - Verify Vehicle Count Line Chart
- UI_HomePage_02 - Verify Traffic Flow Line Chart
- Users view the pie chart to see the distribution of different weather conditions
- UI_HomePage_03 - Verify Weather Condition Pie Chart
- Users select the time in the exploration form.
- UI_ExplorePage_01 - Verify that the selectable times are correct
- UI_ExplorePage_02 - Verify that the Time shown on the card changes when the user chooses it from the combobox
- Users select the weather condition in the exploration form.
- UI_ExplorePage_03 - Verify that the selectable weather conditions are correct
- UI_ExplorePage_04 - Verify that the Weather shown on the card changes when the user chooses it from the combobox
- Users select the vehicle type in the exploration form.
- UI_ExplorePage_05 - Verify that the selectable vehicle types are correct
- UI_ExplorePage_06 - Verify that the vehicle type shown on the card changes when the user chooses it from the combobox
- Users submit the exploration form to get prediction results.
- UI_ExplorePage_07 - Verify that the API endpoint is properly configured when the user submits the exploration form
- Users observe the prediction result displayed on the card after submitting the form.
- UI_ExplorePage_08 - Verify that the result from the backend is displayed on the card after submitting the form
-
request
/countendpoint- API_Count_01 - All Attributes Valid
- API_Count_02 - Invalid Time
- API_Count_03 - Invalid Weather
-
API_Count_04 - Use
GETmethod
-
request
/count/<vehicle_type>endpoint- API_Count_05 - All Attributes Validr
- API_Count_06 - Invalid VehicleType
-
request
/flowendpoint- API_Flow_01 - All Attributes Valid
-
request
/desc/vehicleendpoint-
API_Desc_Vehicle_01 - Call
/desc/vehicle -
API_Desc_Vehicle_02 - Call
/desc/vehicle?day_of_week=1 -
API_Desc_Vehicle_03 - Call
/desc/vehicle?day_of_week=7 -
API_Desc_Vehicle_04 - Call
/desc/vehicle?day_of_week=0 -
API_Desc_Vehicle_05 - Call
/desc/vehicle?day_of_week=8
-
API_Desc_Vehicle_01 - Call
-
request
/desc/flowendpoint-
API_Desc_Flow_01 - Call
/desc/flow -
API_Desc_Flow_02 - Call
/desc/flow?day_of_week=1 -
API_Desc_Flow_03 - Call
/desc/flow?day_of_week=7 -
API_Desc_Flow_04 - Call
/desc/flow?day_of_week=0 -
API_Desc_Flow_05 - Call
/desc/flow?day_of_week=8
-
API_Desc_Flow_01 - Call
-
request
/desc/weatherendpoint-
API_Desc_Weather - Call
/desc/flow
-
API_Desc_Weather - Call