1.

What do you mean by feature in Cucumber?

Answer»

A project's FEATURE can be described as a stand-alone unit or FUNCTIONALITY. A list of scenarios to test for a feature is frequently included with it. The Feature File is a file in which we store features, descriptions of features, and situations to be evaluated. For each feature under test, it is recommended that a separate feature file be created. The feature file must have the extension ".feature." You can make as many feature files as you want.
Here's an example:-

For an e-commerce website, we can have the following features:-

  • User registers and SIGNS up on the website.
  • User tries to log in to their ACCOUNT using their credentials.
  • Users add a product to their cart.
  • User clicks on checkout now.
  • User pays for their items.
  • User logs out from the website.

All these are different features. The website will have many such features. All these features will have a separate Feature File.



Discussion

No Comment Found