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
Example of presence check
An email address must be given for an online transaction
What are the other validation checks?
Character, format, presence
Double entry
The data is entered twice and the two values are compared to see if they are the same. The value is only accepted if the two values are identical
Screen/visual check
After data entry is complete, the data is displayed on the screen and the user is asked to confirm if it is correct before continuing
Why is verification needed?
It is needed to check that data was entered as intended and that incorrect values that meet validation criteria are not accepted