Testing / Cucumber Interview Questions
What is a Cucumber feature file?
A feature file is a plain-text file with a .feature extension containing one Feature and one or more Scenarios written in Gherkin, describing the expected behavior of a piece of functionality from the perspective of someone using it.
Feature: user login Scenario: successful login with valid credentials Given a registered user "alice" with password "secret123" When "alice" logs in with password "secret123" Then the login should succeed And "alice" should see the dashboard
Each feature file typically groups scenarios that relate to the same piece of functionality, and Cucumber discovers feature files by scanning a configured directory (commonly src/test/resources/features in a Cucumber-JVM Maven project) rather than requiring them to be registered anywhere individually.
More Related questions...