Validation and verification Flashcards
What is validation?
Testing if the data entered is possible or reasonable
What are the 4 main validation checks?
range, length, type, check digit
What is verification?
It is checking that data was not changed on entry
What are the (4) verification checks?
double entry , screen/visual check , parity check, checksum.
What is the diffference between validation and verification?
Validation checks that the data is possible. It can’t check if the data was entered correcty
Verification checks if the data entered matches the data submitted for entry. It doesn;t check if the data meets set criteria
Range checks
Used to test if the value input falls between a given upper bound and a given lower bound
Example of range check
Percentage marks should be between 0 and 100 inclusive
Length check
To test if data input is over or under a certain number of characters
Example of length check
An international telephone number can be no longer than 15 digits
Type check
Used to test if the data input is of the correct data type
Example of type check
If the input is expecting an integer, it will not permit a string to be entered
Character check
Used to test if a string of characters is entered doesn’t have any invalid characters or symbols
Example of character check
A name should not contain a % sign
Format check
Used to test if the characters entered conform to a pre-defined pattern
Presence check
Used to test if some data has been entered and the value has not been left blank