© Panos Matsinopoulos 2020
P. MatsinopoulosPractical Test Automationhttps://doi.org/10.1007/978-1-4842-6141-5_7

7. Advanced Cucumber

Panos Matsinopoulos1 

In the previous chapter, I gave you an introduction to Cucumber. In this chapter, you learn about the more advanced features of Cucumber, and you also go into implementing a more elaborate example case. There is a lot to cover in this chapter, including the extensive test case, making the chapter a little bit longer than the average.

Learning Goals

  1. 1.

    Learn about the Feature keyword.

  2. 2.

    Learn about the Background keyword.

  3. 3.

    Learn about the Scenario keyword.

  4. 4.

    Learn about the different logical phases a scenario needs to be divided into.

  5. 5.

    Learn about the And and But keywords.


Get Practical Test Automation: Learn to Use Jasmine, RSpec, and Cucumber Effectively for Your TDD and BDD now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.