Screenplay Pattern, Serenity, and BDD Techniques

#148 - Behavior-Driven Development (BDD) Essentials - Jan Molak & John Ferguson Smart

Topic 8 of 11

Published Sep 11, 2023 · Clip 47:31–1:14:13 (26:42)

Jan explains the screenplay pattern: a user-centered approach to automated acceptance tests with five building blocks — actors, tasks, interactions, abilities, and questions — that captures business vocabulary instead of tool-level details. John discusses why it caused a stir, critiques heavyweight Page Objects, and shows how one team drove UI, API, and domain-level implementations from the same Cucumber scenarios. Jan introduces Serenity/JS with its universal web facade and component testing capabilities enabling test code reuse across teams; John covers Serenity BDD for Java. John also praises feature mapping and example mapping, while Jan champions impact mapping for linking goals, actors, behaviors, and deliverables between business sponsors and delivery teams.