7: Validation and exception handling
Keyword | Definition |
---|---|
actual result | description of what a program actually did when it was tested |
expected result | description of what a program should do if it worked fully |
test data | the specific values that will be input into a program in order to test one part of it |
test plan | a list of ways in which a program will be tested to make sure it works fully |
Keyword | Definition |
---|---|
input | the data that a program accepts in (e.g. from the user or a file) |
output | the data that a program sends out (e.g. to the user or a file) |
process | the calculations that take place to work out what outputs to send based on the inputs a program receives |
Keyword | Definition |
---|---|
presence check | type of validation where the program checks data for empty values |
range check | type of validation where data is checked to see if it's between an expected minimum and maximum value |
type check | type of validation where data is checked against what sort of data the program expects (e.g. integer, boolean, character or string) |
validation | checking that input data is suitable for processing and doesn't contain anything that would cause an error to occur |