CSC265 - Testing 1

Ad hoc testing versus systematic testing

Testing tasks

  1. Build the test harness: utility programs, tools, stubs, and drivers.
  2. Generate the inputs: choose inputs likely to cause failures.
  3. Determine the expected outputs from the specification.
  4. Execute the test cases, capturing the actual outputs.
  5. Compare the actual and expected outputs: can be very expensive; planning pays off here.

Module versus system testing

Stubs and drivers

Example: the Input module




Previous Section Back to Index Next Section