Professional Documents
Culture Documents
Testing Strategy PDF
Testing Strategy PDF
Chapter 13
Software Testing Strategies
copyright 1996, 2001, 2005
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
Software Testing
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
developer
Understands the system
but, will test "gently"
and, is driven by "delivery"
independent tester
Must learn about the system,
but, will attempt to break it
and, is driven by quality
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
Testing Strategy
unit test
integration
test
system
test
validation
test
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
V Model
Testing Strategy
We begin by testing-in-the-small
testing-in-the-small and move toward
testing-in-the-large
testing-in-the-large
For conventional software
For OO software
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
Strategic Issues
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
Unit Testing
module
to be
tested
results
software
engineer
test cases
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
Unit Testing
module
to be
tested
interface
local data structures
boundary conditions
independent paths
error handling paths
test cases
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
10
Module
boundary conditions
independent paths
error handling paths
stub
stub
test cases
RESULTS
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
11
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
12
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
13
Bottom-Up Integration
A
cluster
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
14
Sandwich Testing
A
cluster
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
15
Object-Oriented Testing
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
16
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
17
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
18
OOT Strategy
integration applies
applies three different strategies
thread-based testing
testingintegrates the set of classes
required to respond to one input or event
use-based testing
testingintegrates the set of classes required
to respond to one use case
cluster testing
testingintegrates the set of classes required to
demonstrate one collaboration
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
19
Smoke Testing
A series of tests is designed to expose errors that will keep the build
from properly performing its function.
The build is integrated with other builds and the entire product (in
its current form) is smoke tested daily.
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
20
Validation testing
System testing
Alpha/Beta testing
Recovery testing
Stress testing
Security testing
Performance Testing
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
21
Debugging:
A Diagnostic Process
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
22
new test
cases
suspected
causes
corrections
results
regression
tests
Debugging
identified
causes
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
23
Debugging Effort
time required
to correct the error
and conduct
regression tests
time required
to diagnose the
symptom and
determine the
cause
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
24
symptom
cause
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
25
Consequences of Bugs
infectious
damage
catastrophic
extreme
serious
disturbing
mild
annoying
Bug Type
26
Debugging Techniques
brute force / testing
backtracking
induction
deduction
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
27
These coursew are materials are to be used in conjunction w ith S oft ware Engineering: A Pract it ioners Approach,
6/e and are provided w ith permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005
28