Decoding the feature file

Also now is the time to familiarize yourself with some cucumber terminologies. If you see the feature file content, you can notice the following keyword:

  • Feature: Cucumber mandates to write a brief feature description of the scenarios you want to write in a feature file.
  • Scenario: Before writing any scenario it also mandates the user to write a brief scenario description.
  • Given/When/Then/And - Every step in your scenario would be starting with one of them.
  • There are more such keywords but let's talk about them as they get introduced later in the book.

Now our feature file is ready but there is no code in the background to support these steps, hence the job is only half done. Let's write the glue code for the steps in our scenario.


results matching ""

    No results matching ""