chapter fourteen
14 Prop cupboard patterns for managing input test data
This chapter covers
- Promoting consistency and improve maintainability of default data
- Creating simple default objects and object hierarchies
- Customizing complicated default objects and object hierarchies using builders
- Centralizing support for handling the use of domain-specific terminology in specifications
- Simplifying automation code interactions with data tables
- Comparing two data tables using an atomic assertion without loss of diagnostic information
- Clarifying the specification and testing of complicated data validations
The patterns described in this chapter simplify the management of input test data, and are primarily used for providing the entities that populate a scenario’s context. In the movies and the theatre these sorts of objects are called “props”. The prop cupboard is where the props are kept until they are needed for a scene (or a scenario), so we call this the Prop Cupboard pattern language: