{"id":13504,"date":"2017-02-16T00:00:00","date_gmt":"2017-02-16T06:00:00","guid":{"rendered":"https:\/\/centricconsulting.com\/post\/understanding-cucumber-features_sqat\/"},"modified":"2021-12-15T00:13:48","modified_gmt":"2021-12-15T05:13:48","slug":"understanding-cucumber-features_sqat","status":"publish","type":"post","link":"https:\/\/centricconsulting.com\/blog\/understanding-cucumber-features_sqat\/","title":{"rendered":"Understanding Cucumber Features"},"content":{"rendered":"

Learn about Cucumber Features in part two\u00a0of our\u00a0How-To-Guide on applying the framework to lead your agile testing team\u00a0down the path to\u00a0automation.<\/h2>\n

Blog two\u00a0of a series<\/a>.<\/em><\/p>\n

Now that your Cucumber project has been created<\/a> <\/span>and Gherkin scripts are in hand, your agile testing team is ready to automate. <\/span><\/p>\n

But, before we jump into coding, a few concepts need to be explained. <\/span><\/p>\n

The first concept is <\/span>Features<\/b>. Other concepts – <\/span>Scenarios<\/b><\/a>, <\/span>Gherkin<\/b> scripting<\/span>, and <\/span>WebDriver –\u00a0<\/b>will be discussed in future blog entries<\/a>.<\/span><\/p>\n

Depending on which agile tool you use or which agile book you read, user stories are sometimes referred to as a Feature. For us, they are one and the same. Both describe, from a user point of view, a requirement the business is requesting. <\/span><\/p>\n

Authors of <\/span>The Cucumber Book<\/span><\/i><\/a>\u00a0define Features as groups of tests, stating \u201c\u2026we want them to describe the features that a user will be able to enjoy when using our program.\u201d<\/span><\/p>\n

That is a pretty good definition since we are going to be placing our Acceptance Script(s) in the Feature file along with any additional test cases we come up with. Each Feature is placed in a .feature file that resides in the project\/features directory.<\/span><\/p>\n

Creating a File in Cucumber Features Directory<\/h2>\n

To create a .feature file in Cucumber:<\/span><\/p>\n