Page 21 -
P. 21
xx CONTENTS
CHAPTER 23 OBJECT-ORIENTED TESTING 631
23.1 Broadening the View of Testing 632
23.2 Testing OOA and OOD Models 633
23.2.1 Correctness of OOA and OOD Models 633
23.2.2 Consistency of OOA and OOD Models 634
23.3 Object-Oriented Testing Strategies 636
23.3.1 Unit Testing in the OO Context 636
23.3.2 Integration Testing in the OO Context 637
23.3.3 Validation Testing in an OO Context 637
23.4 Test Case Design for OO Software 637
23.4.1 The Test Case Design Implications of OO Concepts 638
23.4.2 Applicability of Conventional Test Case Design
Methods 638
23.4.3 Fault-Based Testing 639
23.4.4 The Impact of OO Programming on Testing 640
23.4.5 Test Cases and the Class Hierarchy 641
23.4.6 Scenario-Based Test Design 641
23.4.7 Testing Surface Structure and Deep Structure 643
23.5 Testing Methods Applicable at the Class Level 644
23.5.1 Random Testing for OO Classes 644
23.5.2 Partition Testing at the Class Level 644
23.6 Interclass Test Case Design 645
23.6.1 Multiple Class Testing 645
23.6.2 Tests Derived from Behavior Models 647
23.7 Summary 648
REFERENCES 649
PROBLEMS AND POINTS TO PONDER 649
FURTHER READINGS AND INFORMATION SOURCES 650
CHAPTER 24 TECHNICAL METRICS FOR OBJECT-ORIENTED
SYSTEMS 653
24.1 The Intent of Object-Oriented Metrics 654
24.2 The Distinguishing Characteristics of Object-Oriented Metrics 654
24.2.1 Localization 655
24.2.2 Encapsulation 655
24.2.3 Information Hiding 655
24.2.4 Inheritance 656
24.2.5 Abstraction 656
24.3 Metrics for the OO Design Model 656
24.4 Class-Oriented Metrics 658
24.4.1 The CK Metrics Suite 658
24.4.2 Metrics Proposed by Lorenz and Kidd 661
24.4.3 The MOOD Metrics Suite 662
24.5 Operation-Oriented Metrics 664
24.6 Metrics for Object-Oriented Testing 664
24.7 Metrics for Object-Oriented Projects 665
24.8 Summary 666
REFERENCES 667
PROBLEMS AND POINTS TO PONDER 668
FURTHER READINGS AND INFORMATION SOURCES 669