Skip to content

weather statistics test plan

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

Objectives

The objective of this test plan, is to verify that the historical weather API endpoints and related frontend components function as specified in the functional requirements.

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
  • Acceptance 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.

Exit criteria

  • The testing is concluded and there are no functional bugs
  • No major bug reports are left open in the Github bug tracker.

Test Scenario: View past weather statistics

Web UI

Test Cases:

API

Test Cases:

Test plan Report

Link to test report

Clone this wiki locally