appendix-b

Appendix B. Pattern catalog

 

B.1 Spotlight patterns

Local Scenario Context

Intent: The narrative of a scenario should utilize idiomatic business language to describe the entities involved in the behavior being illustrated.

Summary: Share information between steps during scenario execution while ensuring that the information shared cannot affect the outcome of any other scenario execution.

Constraints: Only applicable when the participating step definitions are defined in the same glue code class (or file).

Shareable Scenario Context

Intent: The narrative of a scenario should utilize idiomatic business language to describe the entities involved in the behavior being illustrated.

Summary: Share information between steps during scenario execution while ensuring that the information shared cannot affect the outcome of any other scenario execution.

Constraints: Sharing information across glue code classes (or files) usually requires the creation of data structures suitable for sharing that data. The lifetime of the shared data structures should be managed by the scenario automation tool.

Introduce and Refer

Intent: The narrative of a scenario should utilize idiomatic business language to unambiguously describe and refer to an entity in multiple steps.

Summary: Distinguish the introduction of a new entity from a reference to an existing entity by using specific natural language phrases.

Constraints: Pattern may not be applicable to all non-English natural languages.

Entity Selector

B.2 Prop cupboard

B.3 Mise-en-scène

B.4 Outline

B.5 Dramatis personae

B.6 Dress rehearsal

B.7 Technical note

B.8 Staging

B.9 Stagecraft