Presentation is loading. Please wait.

Presentation is loading. Please wait.

Paul Ammann & Jeff Offutt

Similar presentations


Presentation on theme: "Paul Ammann & Jeff Offutt"— Presentation transcript:

1 Paul Ammann & Jeff Offutt http://www.cs.gmu.edu/~offutt/softwaretest/
Introduction to Software Testing Chapter 1 & 2 Highlights The Fault, Error, & Failure Model Paul Ammann & Jeff Offutt

2 Software Faults, Errors & Failures
Software Fault : A static defect in the software Software Failure : External, incorrect behavior with respect to the requirements or other description of the expected behavior Software Error : An incorrect internal state that is the manifestation of some fault Faults in software are equivalent to design mistakes in hardware. Software does not degrade. Introduction to Software Testing, Edition 2 (Ch 1) © Ammann & Offutt

3 Fault & Failure Model (RIPR)
Four conditions necessary for a failure to be observed Reachability : The location or locations in the program that contain the fault must be reached Infection : The state of the program must be incorrect Propagation : The infected state must cause some output or final state of the program to be incorrect Reveal : The tester must observe part of the incorrect portion of the program state Introduction to Software Testing, Edition 2 (Ch 2) © Ammann & Offutt

4 Observed Final Program State
RIPR Model Reachability Infection Propagation Revealability Test Final Program State Observed Final Program State Reaches Fault Incorrect Final State Infects Error Program State Propagates The failures can be revealed when the observed final program state has overlap with the incorrect final program state. The question is: should testers check the entire program state? How to observe the incorrect program state in a cost-effective manner. Getting the overlap as big as possible and use the cost as small as possible. Reveals Test Oracles Introduction to Software Testing, Edition 2 (Ch 2) © Ammann & Offutt

5 Observed Final Program State
RIPR Model Reachability Infection Propagation Revealability Test Final Program State Reaches Observed Final Program State Fault Incorrect Final State Infects Error Program State Propagates The failures can be revealed when the observed final program state has overlap with the incorrect final program state. The question is: should testers check the entire program state? How to observe the incorrect program state in a cost-effective manner. Getting the overlap as big as possible and use the cost as small as possible. Reveals Test Oracles Introduction to Software Testing, Edition 2 (Ch 2) © Ammann & Offutt


Download ppt "Paul Ammann & Jeff Offutt"

Similar presentations


Ads by Google