Page 1
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 1
Podcast Ch11-04
♦Title: Sandwich Testing ♦Description: Sandwich Testing Strategy,
Pros and Cons of Sandwich Testing, Modified Sandwich Testing
♦Participants: Barry Kurtz (instructor);
Brandon Winters, Sara Hyde, Cheng Vue, Dan Baehr (students)
♦Textbook: Object-Oriented Software
Engineering: Using UML, Patterns and Java by Bernd Bruegge and Allen H. Dutoit
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 2
Sandwich Testing Strategy
♦ Combines top-down strategy with bottom-up
strategy
♦ The system is view as having three layers
A target layer in the middle A layer above the target A layer below the target Testing converges at the target layer
♦ How do you select the target layer if there are
more than 3 layers?
Heuristic: Try to minimize the number of stubs and drivers
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 3
Sandwich Testing Strategy
A B C D G F E Layer I Layer II Layer III
Test E Test D,G Test B, E, F Test A, B, C, D, E, F, G Test F Test G Test A Bottom Layer Tests Top Layer Tests Test A,B,C, D