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.

When creating a testing plan, the test data that you use shouldn’t be random values, but rather values that fulfill the following test criteria.

Normal data

Normal data is test data that is typical (expected) and should be accepted by the system.

Boundary data (extreme data)

Boundary data (sometimes called extreme data) is test data at the upper or lower limits of expectations that should be accepted by the system.

Abnormal data (erroneous data)

Abnormal data is test data that falls outside of what is acceptable and should be rejected by the system.


Example of normal data, boundary data and abnormal data:

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
Boundary data (extreme data): 10
Abnormal data (erroneous data): Thirteen

 

Topics / Programming / Testing and Test Data