Boundary values for a discount field
- Test case design
- beginner
- 5 min
- 2 questions
Boundary value analysis finds the off-by-one bugs that random testing misses. Apply it to a discount code that accepts a quantity range.
Skills practised: Boundary value analysis, Equivalence partitioning
Worked example
For an age field accepting 18 to 60, the boundary set is 17, 18, 60 and 61.
Question 1
A discount applies to quantities from 5 to 50 inclusive. Select the boundary values to test.
Question 2
How many equivalence partitions does the rule above create for whole-number quantities (below, inside, above)?
0/2 answered
