More than ever, mission-critical and business-critical applications depend on object-oriented (OO) software. Testing techniques tailored to the unique challenges of OO technology are necessary to achieve high reliability and quality. Testing Object-Oriented Systems: Models, Patterns, and Tools is an authoritative guide to designing and automating test suites for OO applications.
This comprehensive book explains why testing must be model-based and provides in-depth coverage of techniques to develop testable models from state machines, combinational logic, and the Unified Modeling Language (UML). It introduces the test design pattern and presents 37 patterns that explain how to design responsibility-based test suites, how to tailor integration and regression testing for OO code, how to test reusable components and frameworks, and how to develop highly effective test suites from use cases.
Effective testing must be automated and must leverage object technology. The author describes how to design and code specification-based assertions to offset testability losses due to inheritance and polymorphism. Fifteen micro-patterns present oracle strategies--practical solutions for one of the hardest problems in test design. Seventeen design patterns explain how to automate your test suites with a coherent OO test harness framework.
The author provides thorough coverage of testing issues such as:
Real-world experience, world-class best practices, and the latest research in object-oriented testing are included. Practical examples illustrate test design and test automation for Ada 95, C++, Eiffel, Java, Objective-C, and Smalltalk. The UML is used throughout, but the test design patterns apply to systems developed with any OO language or methodology.
List of Figures.
List of Tables.
List of Procedures.
I. PRELIMINARIES.1. A Small Challenge.
FAQs for Object-oriented Testing.
Test Process. 3. Testing: A Brief Introduction.
What Is Software Testing?
The Limits of Testing.
What Can Testing Accomplish?
Bibliographic Notes. 4. With the Necessary Changes: Testing and Object-oriented Software.
The Dismal Science of Software Testing.
Side Effects of the Paradigm.
Coverage Models for Object-oriented Testing.
An OO Testing Manifesto.
II. MODELS.5. Test Models.
Test Design and Test Models.
Bibliographic Notes. 6. Combinational Models.
How Combinational Models Support Testing.
How to Develop a Decision Table.
Deriving the Logic Function.
Decision Table Validation.
Choosing a Combinational Test Strategy.
Bibliographic Notes. 7. State Machines.
The Basic Model.
The FREE State Model.
State-based Test Design.
Bibliographic Notes. 8. A Tester's Guide to the UML.
Use Case Diagram.
Graphs, Relations, and Testing.
III. PATTERNS.9. Results-oriented Test Strategy.
Test Design Patterns.
Test Design Template.
Documenting Test Cases, Suites, and Plans.
Bibliographic Notes. 10. Classes.
Class Test and Integration.
Method Scope Test Design Patterns.
Combinational Function Test.
Recursive Function Test.
Polymorphic Message Test.
Class Scope Test Design Patterns.
Nonmodal Class Test.
Quasi-modal Class Test.
Modal Class Test.
Flattened Class Scope Test Design Patterns.
Polymorphic Server Test.
Modal Hierarchy Test.
Bibliographic Notes. 11. Reusable Components.
Testing and Reuse.
Test Design Patterns.
Abstract Class Test.
Generic Class Test.
New Framework Test.
Popular Framework Test.
Bibliographic Notes. 12. Subsystems.
Subsystem Test Design Patterns.
Class Association Test.
Round-trip Scenario Test.
Controlled Exception Test.
Mode Machine Test.
Bibliographic Notes. 13. Integration.
Integration in Object-oriented Development.
Big Bang Integration.
Distributed Services Integration.
Bibliographic Notes. 14. Application Systems.
Testing Application Systems.
Test Design Patterns.
Extended Use Case Test.
Covered in CRUD.
Allocate Tests by Profile.
Note on Testing Performance Objectives.
Bibliographic Notes. 15. Regression Testing.
Retest Risky Use Cases.
Retest by Profile.
Retest Changed Code.
Retest Within Firewall.
IV. TOOLS.16. Test Automation.
Why Testing Must Be Automated.
Limitations and Caveats. 17. Assertions.
The Percolation Pattern.
Limitations and Caveats.
Some Assertion Tools.
Bibliographic Notes. 18. Oracles.
Bibliographic Notes. 19. Test Harness Design.
How to Develop a Test Harness.
Test Case Patterns.
Test Case/Test Suite Method.
Test Case/Test Suite Class.
Catch All Exceptions.
Test Control Patterns.
Percolate the Object Under Test.
Private Access Driver.
Test Control Interface.
Built-in Test Driver.
Test Execution Patterns.
Command Line Test Bundle.
Incremental Testing Framework.
A Test Implementation Syntax.
Bibliographic Notes. Appendix. BigFoot's Tootsie: A Case Study.
OOA/D for Capability-driven Testing.