Revise Computingrevisecomputing.co.uk
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates

Knowledge organisers / Testing

Test tables

All topicsPractise exam questions
Knowledge organiser

Testing

301.13e

Complete provided test tables.

What you need to know

A test table documents each test with columns for: test number, input data, data type (normal/boundary/erroneous), expected output, actual output, and pass/fail.

Key points

  • Include test number, input, type, expected, actual, pass/fail
  • Cover normal, boundary, and erroneous data
  • Fill in expected BEFORE running the test
  • A complete table proves the program was thoroughly tested

Code examples

Test table example
python
# | Test | Input | Type      | Expected | Actual | P/F |
# |  1   |  50   | Normal    | "Pass"   | "Pass" |  P  |
# |  2   |  49   | Boundary  | "Fail"   | "Fail" |  P  |
# |  3   | "abc" | Erroneous | Error msg| Crash  |  F  |