Professional Documents
Culture Documents
Agenda
Introduction of BDD
History of BDD
Why BDD
Setup Environment And Pre-requisites
BDD Concept
BDD Annotations
Practical Examples
BDD - Introduction
BDD - History
Why BDD?
Bubble sort
Selection sort
Given a list of numbers
Insertion sort
Shell sort
Comb sort
Merge sort
Quick sort
BDD - Concept
Stories
BDD revolves around the concept of a Story, which represents an automatically
executable increment of business functionality.
Scenarios
At its core a Story comprises of one or more Scenarios, each of which represents a
concrete example of the behaviour of the system.
Steps
Each Scenario comprises of a number of executable steps. These Steps can be of
three types: Given, When and Then are also called BDD Keywords
Stories Annotations
The @BeforeStories and @AfterStories annotations allow the corresponding
methods to be executed before and after a collection of stories
Story Annotations
The @BeforeStory and @AfterStory annotations allow the corresponding methods
to be executed before and after each story
Scenario Annotations
The @BeforeScenario and @AfterScenario annotations allow the corresponding
methods to be executed before and after each scenario
Configuration Annotations
1. @AsParameterConverter
2. @Configure
3. @UsingEmbedder
4. @UsingSteps
5. @UsingGuice
6. @UsingNeedle
7. @NeedleInjectionProvider
8. @UsingPico
9. @UsingSpring
References
BDD -
http://jbehave.org/reference/stable/index.html
Thank You