logo
logo
Sign in

How Does Behavior-Driven Development Optimize the Value of the Work Done?

avatar
Naveen Singh
How Does Behavior-Driven Development Optimize the Value of the Work Done?

Behavior-Driven Development (BDD) is a well-known practice for collaboration and teams use it to bridge the gap between product management and the software development team. It is also very popular among quality engineers to develop test automation framework.

BDD helps in describing requirement in the form of feature file and scenarios, scenarios further get described in the format of Given, When, and Then. Gherkin language can be used to write feature files in more than 40 languages. Some of the important keywords of Gherkin mentioned below that helps in describing features and scenarios:-

Feature, Scenario, Given, When, Then, And, But, Background, Scenario Outline, and Examples

How to write a Feature file?

You can write a feature file in notepad or some popular IDEs like Visual Studio, Eclipse, and IntelliJ, etc. Basically, there is no need to know any particular tools. But the most important thing is how to prepare these scenarios? There is a very popular practice known as the 3 Amigos session. Here is a brief about this session as described in the glossary on Agile Alliance.

Three amigos refers to the primary perspectives to examine an increment of work before, during, and after development. Those perspectives are:

Business — What problem are we trying to solve?

Development — How might we build a solution to solve that problem?

Testing — What about this, what could possibly happen?

People holding these different perspectives should collaborate to define what to do, and agree on how they know when it is done correctly. The end result of such a collaboration results in a clearer description of an increment of work often in the form of examples, leading to a shared understanding for the team.

If you are developing software using Scrum then you may like to host these sessions during Product Backlog Refinement or Sprint Planning. It is because The Product Owner and The Development Team participate during both where The Product Owner provides business prospective and The Development Team (consisting of developers and testers along with other members) provides development and testing prospective.

To view the full blog and this blog "Behavior Driven Development" is originally published on Agilemania website.

collect
0
avatar
Naveen Singh
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more