LlosengCh10E2

LlosengCh10E2 - Object-Oriented Software Engineering...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 10: Testing and Inspecting to Ensure High Quality
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© Lethbridge/Laganière 2005 Chapter 10: Testing and Inspecting for High Quality 2 10.1 Basic definitions A failure is an unacceptable behavior exhibited by a system The frequency of failures measures the reliability An important design objective is to achieve a very low failure rate and hence high reliability. A defect is a flaw in any aspect of the system that contributes, or may potentially contribute, to the occurrence of one or more failures could be in the requirements, the design and the code It might take several defects to cause a particular failure An error is a slip-up or inappropriate decision by a software developer that leads to the introduction of a defect
Background image of page 2
© Lethbridge/Laganière 2005 Chapter 10: Testing and Inspecting for High Quality 3 10.2 Effective and Efficient Testing To test effectively , you must use a strategy that uncovers as many defects as possible. To test efficiently , you must find the largest possible number of defects using the fewest possible tests Testing is like detective work: The tester must try to understand how programmers and designers think, so as to better find defects. The tester must not leave anything uncovered, and must be suspicious of everything. It does not pay to take an excessive amount of time; tester has to be efficient .
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© Lethbridge/Laganière 2005 Chapter 10: Testing and Inspecting for High Quality 4 Glass-box testing Also called ‘white-box’ or ‘structural’ testing Testers have access to the system design They can Examine the design documents View the code Observe at run time the steps taken by algorithms and their internal data Individual programmers often informally employ glass- box testing to verify their own code
Background image of page 4
© Lethbridge/Laganière 2005 Chapter 10: Testing and Inspecting for High Quality 5 Flow graph for glass-box testing To help the programmer to systematically test the code Each branch in the code (such as if and while statements) creates a node in the graph The testing strategy has to reach a targeted coverage of statements and branches; the objective can be to: cover all possible paths (often infeasible) cover all possible edges (most efficient) cover all possible nodes (simpler)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© Lethbridge/Laganière 2005 Chapter 10: Testing and Inspecting for High Quality 6 Flow graph for glass-box testing
Background image of page 6
© Lethbridge/Laganière 2005 Chapter 10: Testing and Inspecting for High Quality 7 Black-box testing Testers provide the system with inputs and observe the outputs They can see none of: The source code The internal data Any of the design documentation describing the system’s internals
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© Lethbridge/Laganière 2005 Chapter 10: Testing and Inspecting for High Quality 8 Equivalence classes It is inappropriate to test by brute force
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/21/2012 for the course CS 307 taught by Professor Staff during the Fall '08 term at Purdue.

Page1 / 83

LlosengCh10E2 - Object-Oriented Software Engineering...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online