☰ See All Chapters |
How Cucumber Framework Works
When you run cucumber framework, it reads the test steps from a file called as feature file. These feature files have the file extension as feature. For example login.feature. Cucumber examines feature files for scenarios to test, and runs the scenarios against application under test. Feature file has list of steps written in Gherkin language. Gherkin language is a set of rules and syntax. Cucumber can understand only these feature files with gherkin language.
After cucumber read test steps from feature files, it needs the step definition to run the steps. Those step definitions can be made available by using any of the automation frameworks like selenium, puppeteer etc… In our tutorial we are using selenium to write the step definitions.

All Chapters