Testing Flashcards
Compile time error
Error checked by Python interpreter is run(Syntax errors usually)
Run time error
Error in which program structure is correct however it does not run as expected
Common syntax errors
Leaving out a keyword Putting a keyword in the wrong place Leaving out a symbol misspelling a keyword incorrect indentation
Logic error
Program passes compiling but produces incorrect or no results at all
Test
Run with a sample data to uncover errors
Debug
find the cause of a known error
Exhaustive testing
Run program using all possible inputs
Equivalence Classes
Group input values into sets of values with similar expected behaviour and choose candidate values
Boundary value
Choose values at, and on either of, the boundaries of the equivalence class
Path testing
Create test cases to test every path of execution of the program at least once
Statement coverage
Tests all statements at least once
Glass box testing
Testing that requires the programmer to examine the code
Black box testing
Testing that requires the creation of test cases based on the problem specification.