O'Reilly logo

Writing Great Specifications: Using Specification by Example and Gherkin by Kamil Nicieja

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Mastering the Given-When-Then template

This chapter covers

  • Writing scenarios for the real world
  • Using realistic data in scenarios
  • Understanding advanced rules for using Given-When-Then
  • Getting unstuck when writing scenarios
  • Generating ideas for new scenarios

In chapter 2, we explored the two layers of executable specifications: the specification layer and the automation layer. We focused on the specification layer and writing it. But if you ever tried to write a blog post, you know that just writing and great writing aren’t the same thing. Likewise, writing scenarios and writing great scenarios can be quite different.

This chapter will teach you to write great scenarios. Chapter 2 taught you the basics of the Given-When-Then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required