liveBook · Manning

Persona

As explained in BDD in Action, Second Edition

A persona is a detailed representation of a typical user, including characteristics such as goals, abilities, background, and motivations.

A persona is a detailed representation of a typical system user, combining a name with goals, abilities, background, habits, and other realistic details. Naming the person makes user stories and acceptance scenarios more concrete than generic roles such as “The User” or “The Customer.” section 7.6.5 section 9.2

Use personas to improve shared understanding and executable test data:

  • Frame behavior around a recognizable user, making it easier to judge whether a feature serves real-world needs. section 7.6.5
  • Replace vague actors in scenarios with named people whose goals and circumstances clarify the expected behavior. section 7.6.5
  • Store precise persona data behind a well-known name so scenarios remain readable while test code supplies registration, login, or account details. section 9.2.1
  • Represent different credentials and personal details through actors, abilities, notes, and generated traveler data in Serenity/JS tests. section 14.2.3

From generic user to Sam

Instead of “As a user, I want to see my account details,” describe Sam, a stay-at-home dad who monitors expenses on a laptop. A scenario can then state that Sam views his account summary and should see current balances, pending transactions, and available amounts. section 7.6.5

Scenario: Registering online for a new Frequent Flyer account
  Given Jane is not a Frequent Flyer member
  When Jane registers for a new account
  Then she should be sent a confirmation email
  And she should receive 500 bonus points

Follow a named persona through an online registration scenario, including membership state, confirmation email, and bonus points. section 9.2.1

How BDD in Action, Second Edition covers it

How deep it goes
Explains persona characteristics, scenario benefits, data lookup, and implementation options, then demonstrates actor configuration without detailing every test framework mechanism.
Examples
Uses Jill, Elsa, Sam, and Jane alongside banking, travel-planning, account-summary, and frequent-flyer registration scenarios.
What it assumes
Assumes user stories and scenarios, while defining personas from basic user characteristics before connecting them to test automation.
What you can do after
Apply it via automated acceptance tests by naming actors and resolving their precise details from configuration, databases, factories, or test state.
How it connects
Connects personas with user experience, user stories, acceptance tests, test data, known entities, actors, and TypeScript structural typing.

Also explained in

Compare how 6 books explain persona →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of BDD in Action, Second Edition. The section links point to the parts of the book it draws on.