page 1
play

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


  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 1 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 2 Sandwich Testing Strategy A Layer I B C D Layer II G E F Test E Layer III Test B, E, F Bottom Test F Layer Tests Test A, B, C, D, Test D,G E, F, G Test G Test A,B,C, D Top Test A Layer Tests Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 3 Page 1

  2. 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 4 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 5 Modified Sandwich Testing Strategy Double Double Test I Test I A Layer I Test B B C D Layer II Test E Triple F G Triple E Layer III Triple Triple Test I Test I Test B, E, F Test I Test I Double Double Test II Test II Test F Test Test D A, B, C, D, Double Double Test D,G E, F, G Test II Test II Test G Test A,C Test A Test C Double Double Test I Test I Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 6 Page 2

  3. Exercise ch11-04-01 A B C D E F G H I J ♦ Specify a test plan for the following components using a sandwich testing strategy ♦ Specify a test plan using a modified sandwich testing strategy Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 7 Page 3

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend