software testing techniques software testing techniques sandwich strategy presentation on the...

12
Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

Upload: mervin-howard

Post on 18-Jan-2018

213 views

Category:

Documents


0 download

DESCRIPTION

Sandwich strategy what‘s that? It‘s a combination of top down and bottom up testing strategies. It‘s purpose is compromise usage of top down and bottom up strategies.

TRANSCRIPT

Page 1: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

Software testing techniquesSoftware testing techniques

Sandwich strategy

Presentation on the seminar

Kaunas University of Technology

Page 2: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

Content

• Sandwich strategy what‘s that?• How does it work?• Pros and cons• Modified Sandwich strategy what‘s that?• How does it work?• Pros and cons

Page 3: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

Sandwich strategy what‘s that?

• It‘s a combination of top down and bottom up testing strategies.

• It‘s purpose is compromise usage of top down and bottom up strategies .

Page 4: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

How does it work?

• 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

Page 5: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

How does it work? (2)

Page 6: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

How does it work? (3) A

B C D

GFE

Layer I

Layer II

Layer IIITest E

Test D,G

Test B, E, F

Test A, B, C, D,

E, F, G

Test F

Test G

Test A

BottomLayerTests

TopLayerTests

Test A,B,C, D

Bottom up testing

Top down

Page 7: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

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.

Page 8: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

Modified Sandwich Testing Strategy

• It‘s a better version of Sandwich Testing Strategy.

Page 9: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

How does it work?

• Test in parallel:– Middle layer with drivers and stubs– Top layer accessing middle layer (top layer replaces

drivers)– Bottom accessed by middle layer (bottom layer

replaces stubs)

Page 10: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

How does it work? (2)A

B C D

GFE

Layer I

Layer II

Layer III

Test F

Test E

Test B

Test G

Test D

Test A

Test C

Test B, E, F

TripleTest ITriple

Test I

Test D,G

DoubleTest II

DoubleTest II

DoubleTest I

DoubleTest I

Test A,C

Test A, B, C, D,

E, F, G

Page 11: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

Pros and Cons of Modified Sandwich Testing

• Takes less time than top down and bottom up testing. Because they are used partial.

• It still needs drivers and stubs.

Page 12: Software testing techniques Software testing techniques Sandwich strategy Presentation on the seminar Kaunas University of Technology

Questions

• Sandwich strategy what‘s that?• How many layers system has in Sandwich

strategy?• How do you select the target layer if there are

more than 3 layers?• What‘s better Sandwich strategy or Modified

sandwich strategy? Why?