Behavior Driven Development [Testing]

Behavior Driven Testing is an extension of Test Driven Development and  BDD Test Approach more focus on user functionality and Tests are writing as a behavior of products/applications.  Test cases are written first and development and testing happen based on the scenarios.

Benefits of BDD approach

  • Manual testing and Automation testing on sync and fewer chances of documentation and quick delivery with quality product
  • Everyone understand and easy to explain to all stakeholders including nontechnical persons and new members.
  • Fit for Agile environment and help to improve the collaborative way to communicate to across team members ( Product owners, BA, Developer, and Tester)
  • Gherkin is the language that uses in Cucumber tool.

Template for Gherkin language:

#Author: your.email@your.domain.com

#Keywords Summary :

#Feature: List of scenarios.

#Scenario: Business rule through list of steps with arguments.

#Given: Some precondition step

#When: Some key actions

#Then: To observe outcomes or validation

#And,But: To enumerate more Given,When,Then steps

#Scenario Outline: List of steps for data-driven as an Examples and <placeholder>

#Examples: Container for s table

#Background: List of steps run before each of the scenarios

#””” (Doc Strings)

#| (Data Tables)

#@ (Tags/Labels):To group Scenarios

#<> (placeholder)

#””

## (Comments)

#Sample Feature Definition Template

@tag

Feature: Title of your feature

I want to use this template for my feature file

@tag1

Scenario: Title of your scenario

Given I want to write a step with precondition

And some other precondition

When I complete action

And some other action

And yet another action

Then I validate the outcomes

And check more outcomes

@tag2

Scenario Outline: Title of your scenario outline

Given I want to write a step with <name>

When I check for the <value> in step

Then I verify the <status> in step

Examples:

    | name  |value | status |

    | name1 |  5   | success|

    | name2 |  7   | Fail   |

 

 

 

18 thoughts on “Behavior Driven Development [Testing]

  1. BDD testing approach may not improve your functional test coverage and mostly BDD help to automation testing.

  2. Excellent blog you have here.. It’s difficult to find excellent
    writing like yours nowadays. I honestly appreciate people like you!
    Take care!!

  3. I don’t even know how I ended up here, but I thought this post was good.

    I don’t know who you are but certainly you’re going to a famous
    blogger if you are not already 😉 Cheers!

  4. Hmm it seems like your blog ate my first comment
    (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still
    new to the whole thing. Do you have any helpful hints for newbie blog writers?
    I’d really appreciate it.

  5. Thanks for a marvelous posting! I genuinely enjoyed reading it, you may be a
    great author. I will always bookmark your blog and definitely will come back down the
    road. I want to encourage one to continue your great job, have a nice morning!

  6. Hi there just wanted to give you a quick heads up
    and let you know a few of the pictures aren’t loading correctly.
    I’m not sure why but I think its a linking issue. I’ve tried it in two different internet browsers and both show
    the same outcome.

  7. I’m truly enjoying the design and layout of your
    blog. It’s a very easy on the eyes which makes it much more
    enjoyable for me to come here and visit more often. Did you hire out a developer to create your theme?
    Great work!

  8. I really like your blog.. very nice colors & theme. Did you create
    this website yourself or did you hire someone to do it for you?
    Plz respond as I’m looking to create my own blog and would like to know where u got this from.
    thanks a lot

  9. My brother recommended I might like this web site.
    He was totally right. This post truly made my day.
    You can not imagine just how much time I had spent for this info!

    Thanks!

  10. Hello, Neat post. There is an issue with your web site in internet
    explorer, could test this? IE still is the market chief and a
    good element of people will miss your great writing because of this problem.

Leave a Reply

Your email address will not be published.