Thermostat


Quality Assurance Boundary value analysis Specification analysis Test case design Public

Easy  

7min

Your team is developing software for a thermostat controller that has a switch for turning the heat on and off.

The following algorithm has been implemented:

  • If the heating switch is on:
    • If the measured temperature is equal to or higher than 23°C, the heat is turned off.
    • If the measured temperature is lower than 23°C, the heat is turned on.
  • If the heating switch is off:
    • If the measured temperature falls below 5°C, the heat is turned on to prevent the water in the heating system from freezing.
    • Otherwise, the heat is turned off.

Define the optimal (effective and efficient) set of boundary test cases to adequately test the thermostat controller.

Test cases


Test case 1
Measured temperatureHeating switchHeating