Test Data

Test data can be divided into three main categories:

1. Normal – This is data input that it is likely that the program will process during a typical run.

2. Extreme – This is data input that is not typical and may occur at the boundaries of the program’s processing.

3. Exceptional – This is data input that is incorrect and will need to be validated by the program to prevent the program giving incorrect results or crashing.

Example
Develop an algorithm for a program that will accept as input a students mark in two exams (Each exam is out of 50 marks). The program should calculate the students total mark and display a message. If the total is greater than or equal to 50 then the output should be a statement of ‘Pass’ and if it is less than 50 it should display ‘Fail’.

Normal Test Data
Mark1=50
Mark2=30
Total=80
Message=’Pass’

Mark1=20
Mark2=18
Total=38
Message=’Fail’

Extreme Test Data
Mark1=1
Mark2=49
Total=50
Message=’Pass’

Mark1=0
Mark2=99
Total=99
Message=’Fail’

Exceptional Test Data
Mark1=-1
Mark2=1
Total=0
Message=’Fail’

Mark1=101
Mark2=0
Total=101
Message=’Pass’

Next: Prepare Technical Documentation