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
The valid range is 10000 to 99999 inclusive. Valid boundaries are the exact edges of the valid range (10000 and 99999), and a valid equivalence class member lies inside the range (like 50000). Other options either include invalid boundaries (like 9999 or 100000) or omit the equivalence class member.
To answer this question, we need to understand the concept of equivalence classes and boundaries in software testing.
Equivalence classes are groups of input values that are expected to produce similar results. Valid equivalence classes are the input values that fall within the valid range or satisfy certain criteria.
Boundaries represent the edges or limits of the valid range of input values. Testing at the boundaries is important because errors often occur at the edges of valid input values.
Let's go through each option to determine which one includes only valid equivalence classes and valid boundaries:
Option A) 1000, 5000, 99999
- 1000 is outside the valid range of 10000 to 99999.
- 5000 is outside the valid range of 10000 to 99999.
- 99999 is within the valid range of 10000 to 99999.
Option B) 9999, 50000, 100000
- 9999 is outside the valid range of 10000 to 99999.
- 50000 is within the valid range of 10000 to 99999.
- 100000 is outside the valid range of 10000 to 99999.
Option C) 10000, 50000, 99999
- 10000 is the lower boundary of the valid range.
- 50000 is within the valid range of 10000 to 99999.
- 99999 is the upper boundary of the valid range.
Option D) 10000, 99999
- 10000 is the lower boundary of the valid range.
- 99999 is the upper boundary of the valid range.
Based on the explanations above, option C includes only valid equivalence classes and valid boundaries, making it the correct answer.