Testing Object-oriented Systems: Models, Patterns, and Tools

Pirmais vāks
Addison-Wesley Professional, 2000 - 1191 lappuses

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.
0201809389B04062001

No grāmatas satura

Saturs

Contents
xxv
List of Tables
xxxi
List of Procedures
xxxvii
PARTI PRELIMINARIES
1
A Small Challenge
3
How to Use This Book
11
A Brief Introduction
41
Testing and Objectoriented Software
63
Classes
347
Reusable Components
525
Subsystems
563
Integration
627
Application Systems
715
Regression Testing
755
TOOLS
799
Test Automation
801

ICpak Test Suite
99
MODELS
109
Test Models
111
Combinational Models
121
State Machines
175
A Testers Guide to the UML
269
PATTERNS
315
Resultsoriented Test Strategy
317
Assertions
807
Oracles
917
Test Harness Design
957
Appendix
1065
Glossary
1073
References
1119
Index
1143
Autortiesības

Citi izdevumi - Skatīt visu

Bieži izmantoti vārdi un frāzes

Par autoru (2000)

Robert V. Binder, president and founder of RBSC Corporation, is internationally recognized as the leading expert in testing object-oriented systems. With more than 25 years of software development experience in a wide range of technical and management roles, he has implemented advanced OO test design and automation solutions for hundreds of clients. He is the author of Application Debugging, writes a column on testing for Component Strategies, and has published many articles in peer-reviewed and popular journals. He serves on the board of the annual Quality Week conference and is a senior member of the IEEE. 0201809389AB04062001

Bibliogrāfiskā informācija