Note: This link was created as a brief reference. For
additional details you should look at your course notes because I have provided
important style considerations throughout the lectures.
|
- Examples of some of the common error cases to check are illustrated
throughout the first section of the notes but a brief summary includes:
|
|
|
- Input testing: Checking that the program reads the input that is
desired by the programmer (see the 'programming
intro' notes for additional details).
|
|
|
- Testing decision making constructs: The three most common test
conditions include obvious true cases, obvious false cases and boundary
cases see the 'decision making' notes
for additional details).
|
|
|
- Testing loops: The three most common test conditions includes when the
loop never runs, when the loop runs exactly once and when the loop runs
'n' times (some arbitrary positive integer that is greater than one).
(See the notes on loops for additional
details).
|