Beruflich Dokumente
Kultur Dokumente
CIS 375
Bruce R. Maxim
UM-Dearborn
1
OO testing Activities
semantic correctness
checking the model's conformance to the
real world problem domain
Consistency of OOA/OOD
Models - 1
assess the class-responsibility-collaborator
(CRC) model and object-relationship diagram
review system design
examine the object-behavior model to check
mapping of system behavior to subsystems
review concurrency and task allocation
examine the use-case scenarios and exercise the
user interface design
Consistency of OOA/OOD
Models - 2
test object model against the object
relationship network to ensure that all design
object contain necessary attributes and
operations needed to implement the
collaborations defined for each CRC card
review detailed specifications of algorithms
used to implement operations using
conventional inspection techniques
5
OO Unit Testing
smallest testable unit is the encapsulated
class or object
similar to system testing of conventional
software
do not test operations in isolation from one
another
driven by class operations and state behavior,
not algorithmic detail or data flow across
module interface
8
OO Integration Testing - 1
focuses on groups of classes that
collaborate or communicate in some
manner
integration of operations one at a time
into classes is often meaningless
regression testing is important as each
thread, cluster, or subsystem is added
to the system
9
OO Integration Testing - 2
thread-based testing
testing all classes required to respond to one
system input or event
use-based testing
test independent classes first
test dependent classes making use of them next
cluster testing
groups of collaborating classes are tested for
interaction errors
10
OO Validation Testing
focuses on visible user actions and user
recognizable outputs from the system
validation tests are based on OOA
use-case scenarios
object-behavior model
event flow diagram
12
14
Fault-Base Testing
best reserved for operations and the class level
uses the inheritance structure
tester examines the OOA model and
hypothesizes a set of plausible defects that
may be encountered in operation calls and
message connections and builds appropriate
test cases
misses incorrect specification and errors in
subsystem interactions
16
Scenario-Based Testing
using the user tasks described in the use-cases
and building the test cases from the tasks and
their variants
uncovers errors that occur when any actor
interacts with the OO software
concentrates on what the user does, not what
the product does
you are better off spending more time on
reviewing the use-cases as they are created
and less time on use-case testing
17
19
attribute-based partitioning
for each class attribute, operations are classified
according to those that
use the attribute
modify the attribute
do not use or modify the attribute
20
Initialization
Computation
Query
Termination
21