Errors
Syntax - Prevents instruction from being executed
Execution - Occur while the program is running. Crash a program. (eg dividing by 0)
Logic - code executes but produces the wrong result
Comprehensive testing
see Greg p 38
Dry run
Form of testing that involves reading the program code and mentally ‘walking through’ it. Tester will predict what the code will produce and fix errors before the code is executed.
Trace Table
Code is tested with test data. Trace table lists variables and tracks the values they store as code is executed
Breakpoint
forces executing code to pause at points defined by the programmer, allowing the current values of variables to be examined
Watchpoint
Stops the program from executing when a condition is met or when a variable changes value.
Both breakpoints and watchpoints may be used to check the current values stored by the program against the expected values.
Comprehensive test plan