Activity: IDM and ISP criteria — GenericStack
(no submission)
Purpose: Understand and practice ISP coverage criteria
You may make a copy of a
worksheet
and complete this activity, or simply type your answers in any text editor.
You may work alone or with at most two other students in this course.
This is from exercise 6.1, #4 (AO textbook).
Derive input space partitioning test inputs for the GenericStack class
with the following method signatures:
public GenericStack ();
public void push (Object X);
public Object pop ();
public boolean isEmpty ();
Assume the usual semantics for the GenericStack.
Try to keep your partitioning simple and choose a small number of partitions and blocks.
- List all of the input variables, including the state variables
- Define characteristics of the input variables. Make sure you cover all input variables
- Partition the characteristics into blocks
- Define values for each block
Task 2: Choose combinations of values
- Apply All Combination Coverage (ACoC)
- Compute the (maximum) number of tests
- Derive test requirements
- Substitute test input values
- Apply Each Choice Coverage (ECC)
- Compute the (maximum) number of tests
- Derive test requirements
- Substitute test input values
- Apply Pair-Wise Coverage (PWC)
- Compute the (maximum) number of tests
- Derive test requirements
- Substitute test input values
- Apply Base Choice Coverage (BCC)
- Compute the (maximum) number of tests
- Derive test requirements
- Substitute test input values
- Apply Multiple Base Choice Coverage (MBCC)
- Compute the (maximum) number of tests
- Derive test requirements
- Substitute test input values