Step 4 - Program Test
All programs must be tested for errors after they are keyed into the computer
Debugging is a programmer's word for testing.
All errors in program code and logic must be eliminated.
A phrase used to define the process of eliminating errors in a program is "getting the bugs out".
There are two types of errors that must be eliminated from a program before it can be used in a real-time computing environment
Syntax Error
An error which violates the rules of the language which the program is written in.
Statements used as program instructions must use the exact format of any command or punctuation as dictated by the program language.
Syntax errors are found during the process of translation from English-like code to binary code.
All syntax errors must be corrected before a program can be executed.
Logic Error
An error, which occurs when programming instructions do not follow a logical sequence that produces correct results.
Logic errors can occur during execution of a program - run-time logic errors.
Logic errors can occur after execution of a program - output logic errors.
TESTING PROCESS - There are several methods of debugging a program
Desk Checking
Programmer sits at a desk and proofreads a printout of the program.
Programmer goes through list line by line looking for syntax and logic errors.
Manual Testing with Sample Data
Both correct and incorrect data is run through the program manually.
The computer is not used - testing is done at a desk with a printout of program.
Testing for correct processing results.
Attempt at Translation
Program is run through a computer using a translator program.
Testing for syntax errors (errors in the rules of the language).
Testing sample data on the computer
Program is run through a computer using sample data after it is free of syntax errors.
Testing for logic errors (run-time and output).
Testing by a select group of potential users
Sometimes called beta testing.
It is usually the final step in testing a program.
Potential users try out the program and
provide feedback.