Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Say Hello 2 Bdd


Published on

Introduction to BDD

  • If you are looking for trusted essay writing service I highly recommend ⇒⇒⇒ ⇐⇐⇐ The service I received was great. I got an A on my final paper which really helped my grade. Knowing that I can count on them in the future has really helped relieve the stress, anxiety and workload. I recommend everyone to give them a try. You'll be glad you did.
    Are you sure you want to  Yes  No
    Your message goes here
  • ⇒ ⇐ This service will write as best as they can. So you do not need to waste the time on rewritings.
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Say Hello 2 Bdd

  1. 1. A step towards next generation of development methodology??<br />Say Hello to “Behavior Driven Development” <br />“BEHAVIOR” sounds cool!<br />I think I can add another “Buzz Word” in my resume!<br />Mahmudul Haque Azad<br />
  2. 2. A brief history (or story) of almost all developers<br />
  3. 3. What is TDD and why it is needed??<br />
  4. 4. But…<br />I have been in development for years with lots of successful projects<br />
  5. 5. Questions that raises in mind<br />WHY the developers feel uncomfortable to write test code, even after completion of development? Is there any way to over come this?<br />
  6. 6. Lets dig a practical example!<br />TDD<br />
  7. 7. What could be the possible test cases.<br />This program should send email if To address is valid.<br />This program should send email if CC address is valid even if To address is not valid<br /> This program should send email if BCC address is valid even if CC and To address is not valid. <br />This program should send email even if the subject line is empty. <br />This program should send email even if the body is empty.<br />
  8. 8. And Then…<br />
  9. 9. Lets find a cure!<br />
  10. 10. What if<br />Specification /Requirement<br />Behavior of the Module<br />How it will behave in all possible situation?<br />
  11. 11. At first! You must know how the medicine is going to work!<br />Researchers have spent lots of time to figure out a possible format of “requirement specification” that is easy to understand to both technical and non technical person. Experts term this type of language as Ubiquitous Language or Domain Specific Language (DSL). <br />
  12. 12. Lets learn some Buzz Word! <br />Human Computer Interaction<br />Ubiquitious Language<br />Domain Specific Language<br />DDD<br />Domain Driven Design<br />
  13. 13. Why Buzz words in middle of such complex problem?<br />
  14. 14. Good News!<br /><ul><li>What ever your write follow Given-When-Then rule.
  15. 15. Can be written by any person regardless of technical background.
  16. 16. This plain English can be compliable!
  17. 17. Plain English to C#/Java/Python…</li></li></ul><li>I can be a language with a simple RULE but I have a name!<br />
  18. 18. Here is the same requirement following this rule!<br />Given that a web based email module has been developed <br />And I am accessing it with proper authentication<br />When I shall write sender email address in To field Or write sender email address in CC filed by not keeping empty the To field Or write sender email address in BCC field by not keeping empty either To field<br />And keeping the subject field non empty<br />And write something in body text area which excepts rich text<br />And press or click send button<br />Then my email will be sent <br />And the event will be logged in log file.<br /><ul><li>Isn't it easy to write and read and understand?
  19. 19. Isn't it covers and depicts all possible test cases?
  20. 20. Hey! Isn't it actually writing a documentation of email module to be developed?</li></li></ul><li>A new concept!<br />Such type of requirement actually depicts how the module would behave once developed and developer can concentrate more on behavior rather than writing test cases. <br />Such phenomenon are termed as Behavior Driven Development (BDD) and I am pretty sure you have understood the basic concept of BDD by now.<br />Huh! I know BDD now and I can add it to my resume without hesitation!<br />
  21. 21. Lets See BDD in Action!<br />For Java: Use Jbehave<br />For .Net use SpecFlow.<br />
  22. 22. A small requirement!<br />Given that we have a search form that searches over Name, Address and Profession table<br />When the user enters non empty text<br />And the length of the text is more than 3 alphanumeric character long <br />Then the user will get the search result <br />And if the search result is empty he will get an message box asking him to do the search again.<br />
  23. 23. Resources<br /><br /><br /><br />
  24. 24. Thank you!<br /> Any Questions? Query?!<br />