Overview

6 What is formulation?

Formulation is the practice of converting a shared understanding of desired system behavior into a specification that business and delivery stakeholders can both read and trust. The key idea is that the wording should be unambiguous, grounded in the business domain, and created collaboratively so that everyone involved means the same thing when they read it later. This shared language reduces translation errors, supports alignment across teams, and reflects the broader BDD emphasis on clear communication.

The chapter also explains that business-readable specifications can take several forms, but not all are equally useful for automation. BDD treats formulated scenarios as serving two purposes at once: they document expected behavior and can also be used to verify that the software behaves as intended. Gherkin is presented as the most common structured format because it is simple, readable, widely supported, and suitable for automation tools, while still being useful even without automation. The broader point is that the exact syntax matters less than the collaborative process and the discipline of writing specifications that can evolve with the system.

A major benefit of writing scenarios in an automatable format is living documentation, where the documentation stays synchronized with the code because automated runs reveal when the two diverge. The chapter describes several reasons this mismatch can happen, including unfinished work, implementation defects, or incorrect specifications, and emphasizes that these reports help teams keep the system and its documentation consistent. It also introduces the idea of scenario granularity: most scenarios should be small, illustrative examples that capture one rule, while a smaller number of longer journey scenarios should show end-to-end business flow and provide a higher-level view of how the system delivers value.

Summary

  • The primary purpose of formulation is to document the shared understanding reached during discovery.
  • We need a ubiquitous language, rooted in the business domain, to ensure future readers of the documentation arrive at the same shared understanding.
  • There is more than one format that can be used to formulate requirements as documentation that can be automated.
  • The most popular target format is Gherkin, which is simple and multi-lingual.
  • Gherkin does not depend on any particular tool and allows organizations to develop a DSL appropriate for specifications to their business domain.
  • The Gherkin format is compatible with many scenario automation tools.
  • The presence of Gherkin does not necessarily indicate that a behavior-driven approach to development has been followed.
  • Documentation that automatically verifies itself against the system it documents can proactively inform the team when the documentation diverges from the implementation. This is a form of living documentation.
  • A divergence between specification and implementation can occur for a variety of reasons and may indicate that a change is needed in the specification, the code, or both.
  • Documentation can include both illustrative and journey scenarios – and these should have different assertion styles.
  • Illustrative scenarios illustrate an aspect of just one rule.
  • Journey scenarios demonstrate longer user journeys, which necessarily encompass the interaction of multiple rules.

FAQ

What is formulation in BDD?Formulation is the process of turning a shared understanding of how a system should behave into a business-readable specification. It produces scenarios that are close to natural language but are still structured enough to be useful.
Why is formulation important if it seems simple?Although formulation may look trivial because it uses natural language-like wording, it is not easy. The challenge is making the wording unambiguous, consistent, and suitable for both people and automation.
What is the main purpose of formulation?The primary purpose of formulation is to document a shared understanding of the system’s expected behavior so that people who were not in the workshop, or who forgot the discussion, can still understand the scenarios the same way.
Why must formulation be a collaborative activity?Formulation needs input from both business and delivery representatives to ensure the language used conveys the same meaning to all stakeholders. Without collaboration, there is no confidence that everyone interprets the scenarios consistently.
What is meant by “ubiquitous language” in this chapter?Ubiquitous language is a shared business-focused vocabulary used by the whole team. It reduces translation between different terms and lowers the risk of misunderstandings or faulty translations during collaboration.
What kinds of formats can formulated scenarios take?Formulated scenarios can appear in several formats, including tables, hierarchical keywords, embedded natural-language code assertions, and Gherkin feature files. Some formats are more automation-friendly than others.
Why is Gherkin emphasized in this chapter?Gherkin is highlighted because it is a common, simple, and stable format for writing business-readable feature files. It is also well suited to automation while remaining readable as plain text.
What are the two main benefits of formulated scenarios?Formulated scenarios serve two purposes: they document a shared understanding of the system’s behavior, and they can be used to automatically verify that the system behaves as expected.
What is living documentation?Living documentation is documentation generated from automated scenarios so that it stays in sync with the system. When implementation and documentation diverge, the team is alerted and can investigate whether the code or the specification needs updating.
What is the difference between illustrative scenarios and journey scenarios?Illustrative scenarios focus on a single rule and are usually highly precise, making them ideal for detailed behavior. Journey scenarios are longer and show an end-to-end user flow, so they are fewer in number and use less precise assertions.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Effective Behavior-Driven Development Effective Behavior-Driven Development ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Effective Behavior-Driven Development Effective Behavior-Driven Development ebook for free