Order numbers on a stock control system can range between 10000 and 99999 inclusive. Which of the following inputs might be a result of designing tests for only valid equivalence classes and valid boundaries:
-
1000, 5000, 99999
-
9999, 50000, 100000
-
10000, 50000, 99999
-
10000, 99999
For valid equivalence classes and boundaries within 10000-99999: test values should include minimum boundary (10000), a typical value from valid class (50000), and maximum boundary (99999). Option A uses invalid range values (1000, 5000). Option B uses boundary-adjacent invalid values (9999, 100000). Option D lacks a typical value.
To answer this question, you need to understand the concept of equivalence classes and boundaries.
Equivalence classes are groups of input values that are expected to produce similar results. In this case, the valid equivalence classes for the stock control system are:
- Numbers between 10000 and 99999 (inclusive)
- Numbers less than 10000
- Numbers greater than 99999
Boundaries, on the other hand, are the points where the behavior of the system might change. In this case, the boundaries are:
- The minimum value: 10000
- The maximum value: 99999
Now let's go through each option to determine which ones include valid equivalence classes and valid boundaries:
Option A) 1000, 5000, 99999 - This option includes a number less than 10000 (1000), which is a valid equivalence class. However, it does not include the maximum value of 99999, which is a valid boundary.
Option B) 9999, 50000, 100000 - This option includes a number less than 10000 (9999) and a number greater than 99999 (100000), which are valid equivalence classes. However, it does not include the maximum value of 99999, which is a valid boundary.
Option C) 10000, 50000, 99999 - This option includes numbers from the valid equivalence class (10000, 50000, 99999) and both the minimum and maximum values (10000 and 99999), which are valid boundaries. Therefore, option C is correct.
Option D) 10000, 99999 - This option includes numbers from the valid equivalence class (10000, 99999) and both the minimum and maximum values (10000 and 99999), which are valid boundaries. Therefore, option D is also correct.
The correct answer is option C. This option includes both valid equivalence classes and valid boundaries.