Skip to content

weather statistics test plan

Khunakorn Pattayakorn edited this page Apr 21, 2025 · 8 revisions

Objectives

The objective of this test plan, is to verify that the historical weather API endpoints provide correct data with error handling as well as verify that related frontend components display correct data.

Features to be tested

API Overview

  • /weather: Return the latest weather data for the given location. If a datetime is specified returns the closest weather data for the given location.

  • /weather/last: Return the weather data from the previous x days.

  • /weather/aggregate: Return the average weather conditions from the previous x days.

  • /{weather condition}/max: Return the max recorded weather condition from the previous x days.

  • /{weather condition}/min: Return the min recorded weather condition from the previous x days.

Frontend components

  • Line charts and bar charts for weather statistics
  • Frontend API calls

Scope of testing

  • APIs: Returned data's structure + validity, and API error handling
  • Frontend API calls: Ability to call backend components and get data.
  • Frontend visualizations: Correctness of displayed charts.

Testing levels and testing types

Testing levels

  • Unit testing
  • Integration testing
  • System testing

Testing types

  • Unit tests
  • End to end tests

Entry criteria

  • The Test cases and documentation have been created.
  • A working version of the software is available.
  • The database has sufficient data for testing

Exit criteria

  • The testing is concluded and there are no functional bugs
  • All major bugs reported by the test cases are documented in the test report and fixed in a bugfix branch

Test Report

Link to test report

Clone this wiki locally