O'Reilly logo

BDD in Action: Behavior-Driven Development for the whole software lifecycle by John Ferguson Smart

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 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 ...

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