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   |

 

 

 

46 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.

  11. Howdy this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or
    if you have to manually code with HTML.
    I’m starting a blog soon but have no coding knowledge so I wanted to get guidance
    from someone with experience. Any help would be greatly appreciated!

  12. Wonderful blog! I found it while surfing around on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo News?

    I’ve been trying for a while but I never seem to get there!

    Cheers

  13. Thanks for some other informative website.
    The place else may I am getting that type of information written in such a perfect means?

    I’ve a mission that I’m simply now operating on, and I
    have been on the look out for such info.

  14. I do not even understand how I stopped up right here, but I thought this put up
    used to be great. I do not know who you’re but definitely you’re going to a famous blogger in case you aren’t already.
    Cheers!

  15. Having read this I believed it was very enlightening.
    I appreciate you spending some time and effort to put this informative article together.

    I once again find myself personally spending way too much time
    both reading and commenting. But so what, it was still worthwhile!

  16. Can I just say what a comfort to find somebody who genuinely knows what they’re discussing on the internet.
    You definitely realize how to bring a problem to light and make it
    important. More and more people have to read this and understand this side of your story.
    I can’t believe you are not more popular since you certainly have the gift.

  17. Hi! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on. Any recommendations?

  18. I think this is one of the most significant information for me.
    And i’m glad reading your article. But wanna remark on few
    general things, The web site style is great, the articles is really nice : D.
    Good job, cheers

  19. I don’t know whether it’s just me or if perhaps everyone else experiencing issues with your blog.
    It appears as if some of the text within your content are
    running off the screen. Can someone else please comment and
    let me know if this is happening to them as well? This could be a problem with my web browser because
    I’ve had this happen previously. Thank you

  20. With havin so much content do you ever run into any problems of plagorism or copyright infringement?
    My site has a lot of unique content I’ve either
    written myself or outsourced but it seems a lot of it is popping it up all over the internet without my permission. Do you know any methods to help stop content from being ripped off?
    I’d genuinely appreciate it.

  21. Simply desire to say your article is as surprising. The clearness in your post is
    just nice and i could assume you’re an expert on this subject.
    Well with your permission let me to grab your RSS feed to keep updated with forthcoming post.
    Thanks a million and please carry on the rewarding work.

  22. You actually make it seem so easy with your presentation but I find this matter to be actually something which
    I think I would never understand. It seems too complicated and extremely
    broad for me. I am looking forward for your next post, I’ll
    try to get the hang of it!

Leave a Reply

Your email address will not be published.