in Technology by (1.8m points)
What is a Feature file in cucumber?

1 Answer

0 votes
by (1.8m 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”

Related questions

0 votes
asked Jul 22, 2021 in Technology by JackTerrance (1.8m points)