0 votes
in Technology by (557k points)
What is a Feature file in cucumber?

1 Answer

0 votes
by (557k points)
Features file contain a high-level description of the Test Scenario in simple language. It is known as Gherkin which is a plain English text language. Feature File consists of the following components like:

Feature: It describes the current test script which has to be executed.
Scenario: It is steps and expected outcome for a specific test case.
Scenario outline: Scenario can be executed for multiple sets of data using scenario outline.
Given: It specifies the context of the text to be executed.
When: specifies the test action which has to perform.
Then: Expected outcome of the test can be represented by “Then”
...