So the extension of a step definition file should be like “.rb” . Set default package for step definitions. A Scenario or feature can have as many tags as you like. Available in version 7.8 and later. Right click on the feature file and select "Generate Step Definitions". Create Testrunner file. So, my Step-Definition class is created successfully now. It missed the user names though, so it created duplicated methods with missing arguments. When Cucumber executes a Step in a Scenario, it will look for a matching Step Definition to execute. Create a Maven Project with name as ‘cucumbermvn’. Cucumber Script 2: Verify output when Email id is entered or not entered. It is a domain specific... For every cucumber project there is a single directory at the root of the project named " features... Cucumber installation could be tiresome but its relatively easy. Create step definitions  When you're editing a feature file, RubyMine detects and highlights the steps where definitions are missing. It does everything that steps helper does, but gives you meaningful stack traces in case something goes wrong. Create a new Maven project from scratch and add the following dependencies and plugins to the pom.xml file. If you have issues, feel free to share them in the comments section, so that we can follow up with them. In Cucumber, the hook is the block of code which can be defined with each scenario in step definition file by using the annotation @Before and @After. In the following code TestRunner.java class, note the @CucumberOptions. Since we do not yet have a step definitions file, we are going to let Cucumber create it for us in our step_definitions directory. ,