Validation, Verification and Testing
Validation, Verification and Testing
In order for computer systems to only accept data inputs that are reasonable and
accurate, every data inputs needs to be examined before it is accepted by the
system.
There are two different methods:
Validation
Verification
Validation
is an automatic check to ensure that data entered is reasonable before it is
accepted into a computer system.
When data is validated by a computer system, if the data is rejected a message
should be output explaining why data was rejected and another opportunity given
to enter the data
cannot ensure data is accurate.
stops unexpected or abnormal data from crashing program and prevents from
receiving impossible garbage outputs.
There are many different types of validation checks including:
Validation
Range Check
checks that only numbers within a specified range are accepted
Data outside the expected range is rejected
Example : Mark ( between 0 and 100 inclusive)
Draw a flow chart which validate the input number is between 1 and 50.
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.
prevents errors when data is copied from one medium to another.
Verification methods include:
Purpose : Boundary data is used to check that the algorithm works correctly with
this test data at upper and lower limit and rejects the test data beyond
the limit.
Example
The algorithm that accept only integers between 1 and 10 as input.
Provide two sets of normal data and their expected results.
Provide some abnormal/erroneous data.
Identify the boundary data required and the expected results.
Expected Results:
Type2 :
Data > 29 AND Data <= 70
Example :
Reason :
Type 3 :
Boundary