{"id":87,"date":"2019-06-17T19:29:02","date_gmt":"2019-06-17T19:29:02","guid":{"rendered":"https:\/\/www.bddtesting.com\/?page_id=87"},"modified":"2019-06-17T19:29:03","modified_gmt":"2019-06-17T19:29:03","slug":"getting-started-with-cucumber-bdd-for-automation-testing","status":"publish","type":"page","link":"https:\/\/www.bddtesting.com\/getting-started-with-cucumber-bdd-for-automation-testing\/","title":{"rendered":"Getting Started With Cucumber BDD For Automation Testing"},"content":{"rendered":"\n

In recent years, there have been more software teams increasingly implementing the Agile software methodology in their development process to adapt to this fast-changing market. This trend challenges testing teams to manage test cases and test scripts which have to be maintained according to changing requirements. Finding an appropriate testing method right from the beginning is one of the key elements for the successful Agile software project.<\/p>\n\n\n\n

WHAT IS CUCUMBER?<\/h2>\n\n\n\n

In fact, many Agile teams have successfully implemented the Behavior-Driven Development (BDD) method to their testing process using Cucumber tool. So, what is Cucumber? And why is it the suitable strategy suggested for Agile projects, along with BDD?<\/p>\n\n\n\n

Cucumber<\/a> is a tool used to run automated acceptance tests created in a BDD format. One of its most outstanding features of the tool is the ability to carry out plain-text functional descriptions (written in the language called Gherkin) as automated tests. Let\u2019s take a look at the below example:<\/p>\n\n\n\n

Feature: Update password\n  Scenario: Admin user can update the user password\nGiven I am in the HR system with an Admin account\nWhen I update password of another user\nThen I receive a message for updating password successfully\nAnd user password is updated to the new password<\/pre>\n\n\n\n

This incredible feature of Behavior-Driven Development (BDD) approach with the advantages as below:<\/p>\n\n\n\n