Академический Документы
Профессиональный Документы
Культура Документы
• Understanding Problem
• Dependency Problem
2
Issues in OO Testing
• Implications of inheritance
• Polymorphism
• White-box testing
• Black-box testing
• Integration strategies
Verification of OOS
•Testing of inheritance.
•Polymorphism
Feature based Testing of Classes
Software Testing Myths
The features of a class can be categorized into six main groups:
• Create
• Destroy
• Modifiers
• Predicates
• Selectors
• Iterators
Feature based Testing of Classes
Turner and Robson [71] have provided the following guidelines for the
preferred features to be tested:
• The Selector features To test them, alter the state of the object,
either by using the appropriate constructor (if available), or by
directly altering the state of the object.
Superclass modifications
Inherited Methods
New attribute
Inherited attribute
Redefined attribute
Integration Testing
• Inter-class testing
• Cluster testing
• Inter-cluster testing
Thread based Integration Testing
Message quiescence
Event quiescence
Implicit Control Flow based
Integration Testing
Implicit Control Flow based
Integration Testing
• Optimistic approach
• Pessimistic approach
Implicit Control Flow based
Integration Testing
Balanced approach
UML based OO Testing