Writing better BDD scenarios

Tutorial K     Start Time : 08:30     End Time : 12:30

Talk Abstract:

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:

  1. Identify common Gherkin pitfalls
  2. Write compact, readable living documentation
  3. Explain the difference between essential and incidental details


Back to Programme

    • Speaker


      Gaspar Nagy - coach, trainer and BDD addict, creator of SpecFlow, Spec Solutions, Hungary

      Gáspár Nagy is 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).
      Gáspár is 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.