Chapter 6. Automating the scenarios

This chapter covers

  • The basic principles of automating your scenario steps
  • The responsibilities of a step definition method
  • Implementing step definitions in Java using JBehave and Cucumber-JVM
  • Implementing step definitions in Python using Behave
  • Implementing step definitions in .NET using SpecFlow
  • Implementing step definitions in JavaScript using Cucumber-JS

So far, you’ve seen how you can describe and discuss your requirements very effectively using concrete examples. You also learned how you can express these examples in a loosely structured format built around the “Given ... When ... Then” structure.

A lot of the value in BDD comes from the conversations around these scenarios. This is why collaborating ...

Get BDD in Action: Behavior-Driven Development for the whole software lifecycle now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.