Test case selection
Test case selection
- The Interval Rule
AKA: "boundary value testing", "domain testing"
- Given the integer interval [L..U], L <= U
- Base rule: test the end points and at least one interior point
for L = 0, U = 100: Test on {0,50,100}
- Error values: test the end points and at least one interior point
Base rule applied to -infinity..L-1 and L+1..infinity
for L = 0, U = 100: test on {-1000,-1,101,1000}
- Indirect application: applies to non-scalars with scalar properties
For a list of maximum size 100: test on list sizes {0,50,100}
Example: LineStorage/driver.C
- Top level pseudocode
initialize lineList
invoke runTest
invoke LSReset
invoke runTest
- runTest pseudocode
load lineList into LineStorage
check that every line and word has been stored
check that line number range errors are detected
check that word number range errors are detected
- Use of the interval rule
Number of words on a line
Number of characters in a word
Line number parameters: normal and error values
Word number parameters: normal and error values