Knowledge organisersTesting
Normal test data as data which should be accepted by a program without causing errors; Boundary test data as data of the correct type which is on the very edge of being valid; Invalid test data as data of the correct data type which should be rejected by a computer system; Erroneous test data as data of the incorrect data type which should be rejected by a computer system; Ability to identify suitable test data for a given scenario; Ability to create/complete a test plan
When testing a program, you should use three types of test data. Normal data is typical data that should be accepted. Boundary data tests the very edges of valid ranges. Invalid/erroneous data should be rejected by the program. Using all three types ensures thorough testing that covers normal use, edge cases, and misuse.
# Testing input validation for range 1-100:
#
# Normal: 50 -> Accept
# Boundary: 1 -> Accept (lower edge)
# Boundary: 100 -> Accept (upper edge)
# Invalid: 0 -> Reject (just below)
# Invalid: 101 -> Reject (just above)
# Erroneous: "hello" -> Reject (wrong type)
# Erroneous: -5.5 -> Reject (wrong type)