Writing Better BDD Scenarios

Gáspár Nagy

Spec Solutions

Writing Better BDD Scenarios

Behavior Driven Development is an agile development technique that improves collaboration between technical and non-­technical members of the team, by exploring the problem using examples. These examples then get turned into executable specifications, often called ‘scenarios’. The scenarios should be easy to read by all team members, but writing them expressively is harder than it looks!

In this tutorial, you will learn how to write expressive BDD scenarios. We’ll start by giving you a very brief introduction to BDD/ATDD. You’ll then be introduced to different writing styles by reviewing pre­pared scenarios. And obviously, you’ll get a chance to write your own scenarios based on examples that we’ll bring along.

We’ll be using Gherkin, the syntax used by Cucumber and SpecFlow ­ but you won’t need a computer. And, you’ll leave with a checklist of tips that you can use the next time you sit down to write a scenario.

Key Takeaways:

  • Identify common Gherkin pitfalls
  • Write compact, readable living documentation
  • Explain the difference between essential and incidental details

See upcoming webinars you may be interested in here.

Explore webinars and eBooks that you can watch on-demand or download and read at anytime, from anywhere.

Discover BDD talks taking place at the EuroSTAR Software Testing Conference. 

About Me!

I am the creator and the main contributor of SpecFlow, regular conference speaker, blogger (http://gasparnagy.com), editor of the BDD Addict monthly newsletter (http://bddaddict.com), and co-author of the book “Discovery: Explore behaviour using Examples (BDD Books 1)” (http://bddbooks.com). I am an independent coach, trainer and test automation expert focusing on helping teams implementing BDD and SpecFlow. He has more than 15 years of experience in enterprise software development as he worked as an architect and agile developer coach.


See more



Similar Categories