17 Testing
17 Testing
Testing
Consider a menu
driven application.
Complete testing
Avoiding redundancy
1 a1 b1 c1
2 a2 b2 c2
3 a3 b3 c1
4 a1 b4 c2
1 6 15 1912 6/16/1912
2 -1 15 1912 Invalid Input
3 13 15 1912 Invalid Input
4 6 -1 1912 Invalid Input
5 6 32 1912 Invalid Input
6 6 15 1811 Invalid Input
7 6 15 2013 Invalid Input
1 6 14 1900 6/15/1900
2 7 29 1912 7/30/1912
3 2 30 1913 Invalid Input
4 6 31 1900 Invalid Input
0 2 99 101
* x * * x *
E4 1 100 E6
E5
Equivalence classes and boundaries for findPrice. Boundaries are
indicated with an x. Points near the boundary are marked *.
Is T the best possible test set for findPrice? Answer this question
based on T’s ability to detect missing code for checking the
validity of age.