Topic 5 - Validation
Topic 5 - Validation
VALIDATION AND
VERIFICATION
Input classified according to:
Sensors
• Data automatically input into system. Data constantly changing.
• Temperature; Pressure; Light; Sound; Humidity; pH
Guidelines for Input Design
Validation
Verification
Checking the accuracy & quality of
To check that the data from the original source data before using, importing
source document is exactly the same as the or otherwise processing data.
data that was entered into the system.
Aim to lesson number of errors.
Transcription errors (E.g. ‘fate’ instead of ‘faith’)
Transposition errors (E.g. 78 instead of 87) Several types of data validation.
Types of Data Validation Methods
Validation Method Description
1. Data type check Confirms correct data type entered. (i.e. does not contain
invalid characters).
Age field - only numeric values should be allowed.
2. Length check Ensures that correct number of character are entered.
Password field - that may only be 8 character long.
3. Presence / Existence check Data entered into required/mandatory fields. (i.e. field
may not be left empty).
Email field - used for communication.
4. Format check Ensures data is in correct format.
Date field - yyyy/mm/dd format
Types of Data Validation Methods.....................continued
Validation Method Description
5. Range / Domain check Normally for numeric, currency or dates. Determines data
falls within a legitimate range of values.
HoursWorked field - > 0 AND <= 8
6. Lookup Only a limited number of values allowed.
Month field - January; February; March;………….; December
7. Check Digit Check if series of numbers entered correctly. Check digit is
last digit of number entered. Specific formula applied on
other digits to calculate check digit.
IDNumber field - 631124 0071 08 4
8. Combination check Determines whether a known relationship between two
fields is valid.
VehicleMake - Ford :. VehicleModel – Fiesta / Fiago / Ranger etc.
Types of Data Validation ??
Homework / Assessments:
ASSIGNMENT
TOPICS 3 & 5 (UI Controls and Validation)
OPEN FROM: THURSDAY, 09 May 2024
14h30
CLOSES: FRIDAY, 17 MAY 2024, 17h00
ATTEMPTS ALLOWED: 1
QUIZ 2 uploaded
tomorrow