Topics / Programming / Testing and Test Data

Testing and Test Data

It is important to test algorithms to check how they perform under a range of conditions.  This includes testing any validation you have created to ensure it performs as expected.

The test data that you use shouldn’t be random values, but rather values that fulfill the following test criteria.

Normal data Data that is typical (expected) and should be accepted
Boundary data
(extreme data)
Data at the upper or lower limits of expectations that should be accepted
Abnormal data
(erroneous data)
Data that falls outside of what is acceptable and should be rejected

Example:

A system has validation to ensure that only numerical values between 1 and 10 are entered as an input.  The test data for this could be:

Normal data 5
Boundary data
(extreme data)
1, 10
Abnormal data
(erroneous data)
Thirteen

 

Topics / Programming / Testing and Test Data