Ooad Testing III
Ooad Testing III
Ooad Testing III
The card consist of class name , its responsibility (operations) and its
collaborators (other classes to which it sends message and on which it
depends for accomplishment for its responsibilities
Inheritance does not obviate the need for thorough testing of all
derived classes. In fact, it actually complicate the testing process
Test case will be designed to check all the above step listed are
correctly executed
The best test case are derived when designer look at the system in a
new or unconventional way
Ask a question like “Might the user want to use this operation which
applies only to Scanner Object while working with the printer?”
Whatever the interface style, test case design that exercise the surface
structure should use both objects and operation as clues leading to
overlooked tasks
Thursday, December 9, 2021 Object oriented Testing 18
Testing Deep structure
Deep structure refers to internal technical details of OO Program
Deep structure testing is designed to exercise dependencies
behavior and communication mechanism that have been established
as part of system and object design
Analysis and design model are used as basis for deep structure
testing
For example the object-relationship diagram or the subsystem
collaboration diagram depicts collaboration between objects and
subsystem that may not be externally visible
The test case design then ask “Have we captured some task that
exercise the collaboration noted on the object-relationship diagram
or the subsystem collaboration diagram? If not why not?”
4) For each Message determine next level of operation that are invoked
and incorporate these in to test sequence