Home > Store

Testing Object-Oriented Systems: Models, Patterns, and Tools (ARP/AOD) (paperback)

Register your product to gain access to bonus material or receive a coupon.

Testing Object-Oriented Systems: Models, Patterns, and Tools (ARP/AOD) (paperback)


  • Your Price: $59.96
  • List Price: $74.95
  • Usually ships in 24 hours.


  • Copyright 2000
  • Dimensions: 7" x 9-1/4"
  • Pages: 848
  • Edition: 1st
  • Book
  • ISBN-10: 0-321-70067-8
  • ISBN-13: 978-0-321-70067-4

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:

  • The bug hazards of OO programming and differences from testing procedural code
  • How to design responsibility-based tests for classes, clusters, and subsystems using class invariants, interface data flow models, hierarchic state machines, class associations, and scenario analysis
  • How to support reuse by effective testing of abstract classes, generic classes, components, and frameworks
  • How to choose an integration strategy that supports iterative and incremental development
  • How to achieve comprehensive system testing with testable use cases
  • How to choose a regression test approach
  • How to develop expected test results and evaluate the post-test state of an object
  • How to automate testing with assertions, OO test drivers, stubs, and test frameworks

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.

Sample Content

Table of Contents

List of Figures.

List of Tables.

List of Procedures.





1. A Small Challenge.
2. How to Use This Book.

Reader Guidance.


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.

Language-specific Hazards.

Coverage Models for Object-oriented Testing.

An OO Testing Manifesto.

Bibliographic Notes.


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.

Test Generation.

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.


General-purpose Elements.

Use Case Diagram.

Class Diagram.

Sequence Diagram.

Activity Diagram.

Statechart Diagram.

Collaboration Diagram.

Component Diagram.

Deployment Diagram.

Graphs, Relations, and Testing.

Bibliographic Notes.


9. Results-oriented Test Strategy.

Results-oriented Testing.

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.

Invariant Boundaries.

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.

Integration Patterns.

Subsystem/System Scope.

Big Bang Integration.

Bottom-up Integration.

Top-down Integration.

Collaboration Integration.

Backbone Integration.

Layer Integration.

Client/Server Integration.

Distributed Services Integration.

High-frequency Integration.

Bibliographic Notes. 14. Application Systems.

Testing Application Systems.

Test Design Patterns.

Extended Use Case Test.

Covered in CRUD.

Allocate Tests by Profile.

Implementation-specific Capabilities.

Post-development Testing.

Note on Testing Performance Objectives.

Bibliographic Notes. 15. Regression Testing.


Test Patterns.

Retest All.

Retest Risky Use Cases.

Retest by Profile.

Retest Changed Code.

Retest Within Firewall.

Bibliographic Notes.


16. Test Automation.

Why Testing Must Be Automated.

Limitations and Caveats. 17. Assertions.


Implementation-based Assertions.

Responsibility-based Assertions.


The Percolation Pattern.


Limitations and Caveats.

Some Assertion Tools.

Bibliographic Notes. 18. Oracles.


Oracle Patterns.


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.

Server Stub.

Server Proxy.

Driver Patterns.

TestDriver Superclass.

Percolate the Object Under Test.

Symmetric Driver.

Subclass Driver.

Private Access Driver.

Test Control Interface.


Built-in Test Driver.

Test Execution Patterns.

Command Line Test Bundle.

Incremental Testing Framework.

Fresh Objects.

A Test Implementation Syntax.

Bibliographic Notes. Appendix. BigFoot's Tootsie: A Case Study.


OOA/D for Capability-driven Testing.

Implementation. Glossary.
Index. 0201809389T04062001


Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership