COEN 286: Software Quality Assurance and Testing -- fall, 2001

Test Design

Prof. John Noll

Santa Clara University

Tue Nov 13 16:19:22 2001



1. Terminology

Test Case

Specification of

  1. environment
  2. inputs
  3. expected results

Test or Test Procedure

Test case(s) plus instructions for running them:

  1. set-up
  2. execution
  3. evaluation
  4. tear-down

Implementation of one or more test cases.

Test Suite

Collection of tests. We make a distinction between tests and test suites because of shadowing and granularity.

2. Design Issues

Shadowing

Test A shadows B if

Granularity

This is a measure of how many test cases a test contains.

Strategy

Requirements-based

Black box testing, cases derived from requirements specification.

Function-based

Black box testing, cases derived from functional specification.

Internals-based

White box testing, cases derived from design or code.

Coverage

A measure of test suite completeness, in terms of

3. Test Case Development Methods

4. Testing Activities

4.1 Low Level

Testing individual components, in isolation and combination.

4.2 High Level

4.3 Retesting