2. COMPREHENSIVE TEST PLAN
Why do we test?
• To identify errors or bugs in code
• To ensure that the program is fit for purpose (matches the specification)
• To show that all of the functional requirements set out in the
specification are met
• To ensure that the code runs efficiently
3. TEST DATA
• Normal – falls within the acceptable limits of the program
• Extreme – on the limits of acceptable data
• Exceptional – should not be accepted by the program (and the user
should be given some feedback)
4. TEST DATA
Example: A program should ask the user to enter test scores for a class of
students. The test was out of 50. Produce a suitable test table.
Test Table
Normal data 47 89
Extreme data 0 100
Exceptional data 340 $abc
12. BREAKPOINT
• A breakpoint can be set to stop the program when that line of code is
executed.
• This allows the programmer to inspect the values held in variables.
13. WATCHPOINT
• A watchpoint is a breakpoint which is mapped to a variable.
• The program will stop running when the value in that variable changes.