liveBook · Manning

Chapter 17: Dramatis personae patterns for clear naming of concepts

What you will learn in chapter 17 of Effective Behavior-Driven Development

The introduction explains why clear, domain-based names for business concepts make scenarios easier to read and discuss.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The introduction explains why clear, domain-based names for business concepts make scenarios easier to read and discuss.

Key terms: business concepts, business domain terminology, product glossary, personas

17.1 Personas

This section introduces personas as meaningful names for scenario data and explains how persona definitions keep scenarios understandable.

Key terms: persona, data persona, user persona, glossary, persona definition, feature file, Background blocks, locality of reference, persona definitions

17.2 In-place Persona pattern: persona definitions in feature files

The section explains how the In-place Persona pattern gives small, feature-local data sets names that scenarios can use without repeating their details.

Key terms: In-place Persona pattern, persona definition, scenario context, order custom parameter type, step definition, Background, data persona definitions, feature file, persona definitions

17.3 Message Persona pattern: asserting user messages

This section explains how Message Personas let scenarios name user messages by intent while automation resolves and asserts the appropriate text.

Key terms: Message Persona, descriptive key, selected language, custom parameter type, parameterized messages, parameter placeholder, message persona’s name

17.4 External Persona pattern: load test data from external sources

The section explains how to keep large persona data outside a feature file while making it available to scenarios and keeping the outcomes verifiable.

Key terms: External Persona pattern, In-place Persona pattern, persona definition, feature file, Given step, step definition, CSV file, external persona definition, feature files, approved result

17.5 Templated Persona pattern: customizing external data sets

This section explains how to customize shared external persona data for scenarios that differ in limited ways, while avoiding duplicated data sets.

Key terms: Templated Persona pattern, External Persona pattern, external persona definition, step definition, data table, template, filtering, Given, But, closing step

17.6 Summary

Concepts explained in this chapter

← Chapter 16: Outline patterns that support higher-level steps Chapter 18: Dress rehearsal patterns for building confidence →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.