4. A smart home app measures the average temperature in the house over the previous week and provides feedback to the occupants on their environmental friendliness based on this temperature.
The feedback for different average temperature ranges (to the nearest °C) should be:
Up to 10°C - Icy Cool!
11°C to 15°C - Chilled Out!
16°C to 19°C - Cool Man!
20°C to 22°C - Too Warm!
Above 22°C - Hot & Sweaty!
Using BVA (only Min- and Max values), which of the following sets of test inputs provides the highest level of boundary coverage?
Explanation / Rationale
For the input equivalence partitions given, the above used boundary value technique yields the following 8 coverage items:
10°C, 11°C, 15°C, 16°C, 19°C, 20°C, 22°C, 23°C.
Hence, the options have the following boundary value coverage:
a) Is not correct. 4 out of 8 (11, 20 ,22 and 23)
b) Is not correct. 3 out of 8 (15, 19 and 23)
c) Is correct. 5 out of 8 (10, 16, 19, 22 and 23)
d) Is not correct. 3 out of 8 (15, 19 and 22)