SDD : Testing Flashcards
The main reasons for testing
- To identify errors
- To ensure that software is fit for purpose
- To ensure that code is efficient
- To ensure that code is maintainable
Test Data - Normal
This is data that the program should be expected to use in normal operation
Test data - Extreme
This is data at the edge of what is acceptable, such as high and low limits or boundaries
Test Data - Exceptional
This is invalid data. Robust programs should reject this
A test Plan
A test plan is a set of test data which should systematically and comprehensively test the software to ensure that it meets the original specification.
Will include, normal, extreme and exceptional data
Syntax error
These are mistakes in the programming ‘grammar’ e.g. forgetting to put a semi colon or close a bracket.
Execution error
An execution error is one which causes te program to stop when it is run e.g. divide by zero, trying to writing to file which does not exist.
Logical error
An error in the logic of the code such as using ˂ instead of ˃ or AND instead of OR. The program will execute the code but will produce unexpected results.
Dry run
A dry run is a manual run through pseudocode or the source code of the program
Brekapoints
A breakpoint is a set at a point in a program where it will stop execution so that the values of variables can be examined;
Watchpoint
Watchpoints are assigned to variables. They stop the execution of the program when a variable changes or when the contents of a specific variable or expression meets a paarticular condition.