Professional Documents
Culture Documents
___________________ ___________________
I0065 I0065
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 1 of 25 Page 3 of 25
2 _________________ 4 __________________
___________________ ___________________
I0065 I0065
___________________ ___________________
than constructive progress toward testing “in the large.”
___________________ ___________________
Exhausting testing is not possible.
preconceived notions of the “correctness” of
software just developed and overcome a
To be most effective, testing should be
___________________ ___________________
conflict of interest that occurs when errors are
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 2 of 25 Page 4 of 25
5 _________________ 7 __________________
___________________ ___________________
I0065 I0065
Simplicity
Stability
Understandability
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 5 of 25 Page 7 of 25
6 _________________ 8 __________________
___________________ ___________________
I0065 I0065
sometimes called glass-box testing
uses the control structure of the procedural
___________________ white-box testing technique first proposed
by Tom McCabe ___________________
___________________ ___________________
design to derive test cases
the software engineer can derive test cases
enables the test case designer to derive a
that:
___________________ ___________________
logical complexity measure of a
1. guarantee that all independent paths
procedural design and use this measure as
within a module have been exercised at
least once a guide for defining a basis set of
2. exercise all logical decisions on their true
and false sides
___________________ execution paths
___________________
3. execute all loops at their boundaries and
within their operational bounds
4. exercise internal and data structures to
___________________ ___________________
assure their validity
___________________ ___________________
___________________ ___________________
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 6 of 25 Page 8 of 25
9 _________________ 11 _________________
___________________ ___________________
I0065 I0065
Characteristics Software
Black-box Testing
___________________ Testing
___________________
focuses on the functional requirements of
the software ___________________ provides a road map for the software
developer, the quality assurance organization, ___________________
___________________ ___________________
and the customer
enables the software engineer to derive
sets of input conditions that will fully
exercise all functional requirements for a incorporate test planning, test case design,
program
not an alternative to white-box
___________________ test execution, and resultant data collection
and evaluation ___________________
techniques
complementary approach that is likely to ___________________ should be flexible enough to promote the
creativity and customization that are
___________________
___________________ ___________________
uncover a different class of errors than necessary to adequately test all large
white-box methods software-based systems
attempts to find errors in the following
___________________ ___________________
categories: must be rigid enough to promote reasonable
planning and management tracking as the
incorrect or missing functions
___________________ ___________________
project progresses
interface errors
Software Testing Methods and Strategies * Property of STI Software Testing Methods and Strategies * Property of STI
Page 9 of 25 Page 11 of 25
10 ________________ 12 _________________
___________________ ___________________
I0065 I0065
Characteristics Software
Black-box Testing
___________________ Testing
___________________
Criteria in applying black-box techniques
___________________ Testing begins at the module level2 and
___________________
test cases that reduce, by a count that is
greater than one, the number of additional
test cases that must be designed to achieve
___________________ works “outward” toward the integration
of the entire computer-based system. ___________________
reasonable testing
___________________ Different testing techniques are
appropriate at different points in time.
___________________
___________________ ___________________
test cases that tell us something about the
presence or absence of classes of errors,
rather than errors associated only with the Testing is conducted by the developer of
specific test at hand
___________________ the software and an independent test
group. ___________________
___________________ Testing and debugging are different
activities, but debugging must be
___________________
___________________ accommodated in any testing strategy.
___________________
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 10 of 25 Page 12 of 25
13 ________________ 15 _________________
___________________ ___________________
I0065 I0065
___________________ ___________________
Validation refers to a different set of Design D
activities that ensure that the software Code C
U Unit test
that has been built is traceable to
___________________ ___________________
I Integration test
customer requirements. V Validation test
ST System test
___________________ ___________________
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 13 of 25 Page 15 of 25
14 ________________ 16 _________________
___________________ ___________________
I0065 I0065
testing "direction"
___________________ ___________________
___________________ ___________________
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 14 of 25 Page 16 of 25
17 ________________ 19 _________________
___________________ ___________________
I0065 I0065
State testing objectives explicitly.
Understand the users of the software and ___________________ Module ___________________
___________________ ___________________
develop a profile for each user category. interface
Develop a testing plan that emphasizes “rapid local data structures
cycle testing.” boundary conditions
Build “robust” software that is designed to test
itself. ___________________ independent paths
error handling paths
___________________
Use effective formal technique reviews as a
filter prior to testing. ___________________ ___________________
___________________ ___________________
Conduct formal technical reviews to assess the
test strategy and test cases themselves.
Develop a continuous improvement approach
for the testing process.
___________________ test
cases ___________________
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 17 of 25 Page 19 of 25
18 ________________ 20 _________________
___________________ ___________________
I0065 I0065
Parameter and argument attributes match
Parameter and argument units systems match ___________________
The relative complexity of tests and uncovered ___________________ Number of arguments transmitted to called
modules equal to number of parameters
Attributes or arguments transmitted to called
___________________
___________________ ___________________
errors is limited by the constrained scope
___________________
modules equal to unit system of parameters
Number of attributes and order of arguments ___________________
___________________ ___________________
to built-in functions correct
Any references to parameters not associated
with current point of entry
___________________
Input-only arguments altered
Global variable definitions consistent across
___________________
___________________
modules
Constraints passed as arguments ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 18 of 25 Page 20 of 25
21 ________________ 23 _________________
___________________ ___________________
I0065 I0065
Top-Down Integration
___________________ ___________________
D1 D2 D2
22 ________________ 24 _________________
___________________ ___________________
I0065 I0065
M2 M3 M4 ___________________ requirements
Alpha Testing
___________________
___________________ conducted at the developer’s site by a
customer
___________________
M5 M6 M7
___________________ Beta Testing ___________________
___________________ ___________________
conducted at one or more customer sites by
the end user(s) of the software
___________________ ___________________
M8
Top-Down Integration
___________________ ___________________
Software Testing Methods and Strategies * Property of STI
___________________ Software Testing Methods and Strategies * Property of STI
___________________
Page 22 of 25 Page 24 of 25
25 ________________
___________________
I0065
System Testing
___________________
series of different tests whose primary purpose
is to fully exercise the computer-based system ___________________
Recovery Testing
forces the software to fail in a variety of ways
___________________
and verifies that recovery is properly
performed ___________________
___________________
Security Testing
attempts to verify that protection mechanisms
built into a system will in fact protect it from
improper penetration
Stress Testing ___________________
___________________
executes a system in a manner that demands
resources in abnormal quantity, frequency, or
volume
Performance Testing
designed to test run-time performance of
software within the context of an integrated
___________________
system
___________________
Software Testing Methods and Strategies * Property of STI
___________________
Page 25 of 25