34.5k views
3 votes
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?
A. 0°C, 11°C, 20°C, 22°C, 23°C
B. 9°C, 15°C, 19°C, 23°C, 100°C
C. 10°C, 16°C, 19°C, 22°C, 23°C
D. 14°C, 15°C, 18°C, 19°C, 21°C, 22°C

1 Answer

3 votes

Final answer:

The set of test inputs that provides the highest level of boundary coverage using Boundary Value Analysis for a smart home app's temperature feedback system is Option C: 10°C, 16°C, 19°C, 22°C, and 23°C, as it tests the edges of each temperature feedback range.

Step-by-step explanation:

The question is asking to identify the set of test inputs that would provide the highest level of boundary coverage for temperature feedback ranges in a smart home app using Boundary Value Analysis (BVA). BVA is a software testing technique which involves creating test cases at boundaries of input values rather than well within ranges.


Specifically, the test inputs need to focus on the minimum and maximum values at the edge of each temperature range as defined in the feedback system of the app.

Looking at the given options and considering the principles of BVA, the correct answer is:

  • Option C: 10°C, 16°C, 19°C, 22°C, 23°C

These temperatures are the exact boundaries at which the feedback messages change, ensuring the highest level of boundary coverage. For instance, 10°C and 11°C test the boundary between 'Icy Cool!' and 'Chilled Out!' feedbacks, 11°C and 15°C for 'Chilled Out!' and 'Cool Man!', and so on.

User Plancke
by
7.8k points