Notes On Data Validation & Verification, Test Data
Notes On Data Validation & Verification, Test Data
Validation is an automatic check to ensure that the data entered is sensible and feasible.
Validation cannot ensure data is accurate.
When programming, it is important that you include validation for data inputs. This stops
unexpected or abnormal data from crashing your program and prevents you from receiving
impossible garbage outputs.
Validation methods
Verification is a way of preventing errors when data is copied from one medium to another.
Verification does not check if data makes sense or is within acceptable boundaries, it only
checks that the data entered is identical to the original source.
Verification methods
Visual check The user manually reads and compares the newly
inputted data against the original source to ensure
they match
Test Data
Test data
Before performing a test, you need to decide what data you are going to include in your test
case. It is not normally possible to perform tests with every single possible piece of data. So,
instead, the developers will choose from a limited range of data such as:
1. A hospital is creating a database to store blood donors’ medical details. The fields in the
database include Health_number, Date_of_birth, Gender and Blood_group.
a. In the Blood_group field, the only data that can be entered is A, B, AB or O.State
whether each of the following blood groups is an example of abnormal or normal
data
- AB: …………………
- C: …………………...
- B: ………………….
- AO: …………………....
b. Each blood donor has a unique health number which uses a 10-digit number, for
example,9434765919.
Name the most appropriate validation check for the Health_number.
………………………………………………………………………………….
2. A teacher is creating a spreadsheet that will record the grades students achieved in
recent tests and compare the average grades of these tests with the students’ forecast
grades. The grading 4 the teacher is using awards 1 for the highest grade down to 10 for
the lowest. The teacher has created a validation rule on the grade entered. Give
examples of data used to test the validation rule. Your answers for abnormal test data
must be for a different reason in each case.
3. Data input by a customer at a car parking lot includes the day and the hour of arrival.
Identify one suitable validation check for each input and justify your choice.Your
validation checks must be different.