Please enable JavaScript.
Coggle requires JavaScript to display documents.
2.3 Producing Robust Programs (Validation Techniques (Check Digit (Last…
2.3 Producing Robust Programs
Validation Techniques
Check Digit
Last few digits are checked to check others are correct
Format Check
Check data is in the correct format
Length Check
Check the data isn't too long or short
Lookup Table
Looks up acceptable values in a table
Presence Check
Checks that data has been entered into a field
Range Check
Checks that a value falls within the specified range
Spell Check
Looks up words in a dictionary
Types of Testing
Iterative Testing
Happens overtime, repeated throughout development of program
Final Testing
Happens when product is released and people start using it
Test Data
Valid
Data that is correct
In Range
The minimum and maximum values of the data that could be entered
Out of Range
Values higher or lower than the expected range
Null Value
When no data is entered
Invalid
Incorrect Values
Test Data - Something that has been specifically identified for use in tests
Types of Errors
Syntax Errors
The error in the rules/grammar of the language
Eg. missing colon / spelling mistake
Logic Errors
The program is written to do something other than what the programmer intended
Keywords
Data Validation - Check to ensure that the data entered is sensible and reasonable. Does not check the accuracy
Data Sanitisation - Trims or strips springs, removing unwanted characters