Test case specification from an interaction diagram

White-box tests are prepared by using the interaction diagrams as abstract program scripts. Each interaction diagram shows how the classes, component interfaces, and other items of interest interact to provide the behavior described in the use case courses. Given the interaction diagram and a set of pre- and post-conditions to constrain the test, the precise pattern of interaction that should occur can be predicted and documented. When the code is executed, the pattern of code execution can be confirmed against the script provided.

Get Service- and Component-based Development: Using Select Perspective™ and UML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.