liveBook · Manning

Test strategy

As explained in Effective Behavior-Driven Development

A planned approach defining the testing activities, scope, and coverage needed to evaluate a software product.

A few clear scenarios can help a team agree on what a product should do. But in a regulated project, clear examples alone may not provide enough test coverage or evidence that a particular version was tested. A test strategy sets the coverage needed and helps the team decide how to verify it. section 4.7

Put the strategy into practice by separating three decisions:

  • Choose illustrative, business-readable scenarios to establish a shared understanding of the specification. Add further test cases in the same format to reach the prescribed coverage. section 4.7
  • Choose how to automate those scenarios for the application at hand. Browser automation, REST API automation, and stubs are possible approaches; BDD does not require testing through the user interface. section 12.5
  • Keep scenarios versioned with the application code. Execution reports can record expected behavior, the tests used, and results for a particular product version; prepare reports to meet any formal requirements. section 4.7

When examples are not yet enough

A regulated team may start with scenarios that make the expected behavior easy to discuss. The team then checks those scenarios against its required coverage, adds cases where needed, and selects suitable automation interfaces. An execution report provides evidence for the version tested—not a substitute for deciding whether coverage is complete. section 4.7 section 12.5

Agree on and document automation choices so they remain useful after the discussion. AI tools can help record the strategy and flag deviations, but documentation should remain concise enough to use. section 12.5

How Effective Behavior-Driven Development covers it

How deep it goes
Outlines coverage, traceability, versioned reports, and automation options; leaves coverage targets and implementation choices dependent on the project.
Examples
Contrasts browser automation, REST API automation, and stubs, alongside version-specific scenario execution reports.
What you can do after
Apply it via BDD scenarios and automation tools to extend coverage, execute checks, and report results for a product version.
How it connects
Links Behavior Driven Development, business-readable scenarios, specification coverage, traceability, and automation strategy.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Behavior-Driven Development. The section links point to the parts of the book it draws on.