What is Behaviour Driven Development?
Behaviour Driven Development (BBD) is a software development process that works with the agile software development models. It is used to define how software will be documented and designed around the actual behaviour of the software.
What are the advantages of Behaviour Driven Development?
- Testers, developers and producers collaborate to create requirements and user stories
- Focused on user needs of the software
- Requires no particular tools or programming languages
- Requirements are clear
- Easy to understand tests as they are written in plain English
- Living Documentation that reflects the current behaviour
How do I write a user story?
A user story or a scenario are written in plain English so that they are easy to understand.
Each scenario normally consists of a scenario title and steps.
The steps consist of Given, When and Then steps.
An example being:
Scenario: User submits the contact us form
Given that the user is viewing the contact us form
And valid text has been entered in the fields
When the user clicks the Submit button
Then the form is submitted
And the user is taken to the Thank You page
Who are the 3 amigos?
A “3 amigos” meeting normally consists of a tester, developer and a producer (or other business stakeholder).
The goal of a 3 amigos meeting is for the team to collaborate to create requirements and user stories for a new feature before any development and testing begins.
Having the 3 amigos meeting before any development is the best time, as the requirements and user stories are ready before any development begins and can guide the work.
Behaviour Driven Development at Gibe
At Gibe we use behaviour driven development frequently as a living documentation of our sites and as a way to help guide testing and development.
We have frequent 3 amigo meetings to discuss requirements and user stories of new features being developed.