Defining Steps

You can automatically create a suitable class with step definition method snippets for a Gherkin feature file:

  • Open your feature file.

  • Right-click in the editor and select Define steps… from the menu.

  • Enter a name for your class in the Class name field.

  • Click on Create to generate a new step definition file or use the Copy methods to clipboard method to paste the snippet of code in an existing step definition file.

Generating Code Snippets for Step Definition Methods