Testing Flashcards
What is Normal Test Data
Puting in Inputs that the program would usually get
1-100
Example: 56,24,87,5
What is Extreme Test Data
Putting in Inputs which cant go any higher or lower then the programs max or min input
1-100
Example:1,100
What is Exceptional Test Data
Making sure the program can handle situations that it has not been designed to cope with
1-100
Examples:Z, %, 200, !, @
What are the Three types of Errors
Syntax Error
Logic Error
Execution Error
What is Syntax Error
This occurs when the rules of the program code have been broken.
Example: Missing a Braket or Colon
What is an execution error
An execution error occurs when a program is asked to do something that it cannot, resulting in a ‘crash’
Example: When asked to divide by 0
What is Logic Error
When the program will execute the code without crashing but will produce unexpected results.
Example : Using > instead of < or using AND instead of OR
What are the two Testing Techniques
Dry Runs
Trace Tables
What is a Dry run
When a programmer manually working through their code to trace the value of variables. Using pen and paper
What is a Trace Table
Trace tables are used to allow programmers to trace the value of variables as each line of code is executed.
What is a BreakPoint
Setting a chosen line for the program to stop execution so the values on during the line can be examined
What is a WatchPoint
The Program will stop at a line where a variable would be a specific value