Page 1 Pros and Cons of Sandwich Testing Top and Bottom Layer Tests - - PDF document

page 1
SMART_READER_LITE
LIVE PREVIEW

Page 1 Pros and Cons of Sandwich Testing Top and Bottom Layer Tests - - PDF document

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


slide-1
SLIDE 1

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

slide-2
SLIDE 2

Page 2

Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 4

Pros and Cons of Sandwich Testing

♦ Top and Bottom Layer Tests can be done in

parallel

♦ Does not test the individual subsystems

thoroughly before integration

♦ Solution: Modified sandwich testing strategy

Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 5

Modified Sandwich Testing Strategy

♦ Test in parallel:

Middle layer with drivers and stubs Top layer with stubs Bottom layer with drivers

♦ Test in parallel:

Top layer accessing middle layer (top layer replaces drivers) Bottom accessed by middle layer (bottom layer replaces stubs)

Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 6

Modified Sandwich Testing Strategy

A B C D G F E Layer I Layer II Layer III

Test F Test E Test B Test G Test D Test A Test C Test B, E, F Triple Test I Triple Test I Triple Test I Triple Test I Test D,G Double Test II Double Test II Double Test II Double Test II Double Test I Double Test I Double Test I Double Test I Test A,C Test A, B, C, D, E, F, G

slide-3
SLIDE 3

Page 3

Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 7

Exercise ch11-04-01

♦Specify a test plan for the following

components using a sandwich testing strategy

♦Specify a test plan using a modified

sandwich testing strategy

J I H G F E D C B A