A cucumber Feature File is a place where you can store your business requirements. A feature file consists of various scenarios related to a single feature. Each scenario consists of a list of steps. Steps are written in Gherkin syntax.
Scenario: Searching for Cucumber on Google
Given I am on the Google home page
When I search for "Cucumber"
Then the first result should be the Cucumber project website
A cucumber feature file is a text file that contains test scenarios written using Gherkin syntax. A typical cucumber feature file contains a description of one or more features followed by a scenario section that describes how the feature should work in various scenarios.
A cucumber step definition is a Java method with an annotation that tells the Cucumber what type of step it is. For example, @Given annotation marks the method as a Given step @When marks it as a When step, and so on. The Step Definition methods are typically defined in a separate class known as Step Definitions.
A cucumber feature file is a collection of scenarios written in Gherkin (a plain-text language with a little extra structure). It serves as documentation of automated tests and living specifications of your system. Step definitions are pieces of code that tell Cucumber what to do when it sees a Gherkin step in a scenario. They're written in programming languages like Ruby Java .NET etc.