Testing Flashcards
2 types of programming errors
Syntax
Logic
Syntax Error
When there is a grammar issue in the code which the compiler cannot understand
Logic Error
When the compiler can run the program but the output is unexpected
How are syntax errors diagnosed?
By the compiler
2 types of testing
Iterative testing
Final (terminal) testing
Iterative Testing
Program is tested during the development process
Often the programmer tests a module, fixes errors, and moves on to the next module
Final (terminal) Testing
Program is tested at the end of the development process
What is iterative testing used for?
To find + fix small errors, to help prevent formation of larger errors
What is final testing used for?
to make sure modules work together
Test Plan
Outlines exactly what and how you are going to test something
Should cover all possible paths through a program
What makes a good test plan?
Anticipates all potential issues of a program and selects appropriate data to test for this
Types of test data
Normal Data
Boundary Data
Invalid Data
Erroneous Data
Normal Data
things that user is likely to put in
Boundary Data
values at the limit of accepted values
Invalid Data
inputs with correct data type but should be rejected by program