0
BDD Testing with Cucumber  Dev.Talk. Zürich. 19. Sept 2012
BDDBusiness         Technology• Domain                 • Test driven  driven                   development  design
Core Principles1. Enough is enough do as much   planning, analysis, and design as you   need, but no more.2. Deliver stake...
describe thebehaviorof your softwarein a very understandableway
1 Describe                 Behaviour                               2 Write step5 Run and pass                             ...
BehaviorFeature: <short description> <story>        WHO? As a <role>                WHAT? I want <feature> <scenario 1> WH...
Step definition• Regex based• Reusable• Cucumber gives you copy & paste code
Human Language support# language: deFunktionalität: Addition  Um dumme Fehler zu vermeiden  möchte ich als Matheidiot  die...
What about Java, .net, …?Java: Cucumber-Jvm• Pure Java• Supports:  Java, JavaScript, JRuby, Scala, Python, G  roovy, Ioke....
Testing possibilities…•   Selenium browser testing•   Webrat acceptance testing•   Interface testing (example mozo poc)•  ...
More Informationhttps://github.com/cucumber/cucumber/wikihttp://behaviour-driven.org/
Upcoming SlideShare
Loading in...5
×

BDD testing with cucumber

2,708

Published on

How to do behavior driven development with cucumber, generate easy readable and understandable test reports for your business.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,708
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
161
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • http://www.engineyard.com/blog/2009/cucumber-introduction/
  • http://behaviour-driven.org/
  • cucumber --i18n ru
  • https://github.com/cucumber/cucumber-jvmhttp://blog.webintellix.com/2009/10/how-to-use-cucumber-with-net-and-c.html
  • http://www.engineyard.com/blog/2009/cucumber-introduction/
  • Transcript of "BDD testing with cucumber"

    1. 1. BDD Testing with Cucumber Dev.Talk. Zürich. 19. Sept 2012
    2. 2. BDDBusiness Technology• Domain • Test driven driven development design
    3. 3. Core Principles1. Enough is enough do as much planning, analysis, and design as you need, but no more.2. Deliver stakeholder value everything you do should deliver value or increase your ability to do so.3. It’s a behavior everyone involved should have the same way of talking about the system and what it does.
    4. 4. describe thebehaviorof your softwarein a very understandableway
    5. 5. 1 Describe Behaviour 2 Write step5 Run and pass definition 4 Write code to 3 Run and fail make step pass
    6. 6. BehaviorFeature: <short description> <story> WHO? As a <role> WHAT? I want <feature> <scenario 1> WHY? so that <business <scenario n> value> Scenario: <description> Given <preconditions, context> [And] <additional preconditions> When <action, behaviour> Then <postconditions> [And] <additional postconditions>
    7. 7. Step definition• Regex based• Reusable• Cucumber gives you copy & paste code
    8. 8. Human Language support# language: deFunktionalität: Addition Um dumme Fehler zu vermeiden möchte ich als Matheidiot die Summe zweier Zahlen gesagt bekommen Szenariogrundriss: Zwei Zahlen hinzufügen Angenommen ich habe <Eingabe_1> in den Taschenrechner eingegeben Und ich habe <Eingabe_2> in den Taschenrechner eingegeben Wenn ich <Knopf> drücke Dann sollte das Ergebniss auf dem Bildschirm <Ausgabe> sein Beispiele: | Eingabe_1 | Eingabe_2 | Knopf | Ausgabe | | 20 | 30 | add | 50 | | 2 | 5 | add | 7 | | 0 | 40 | add | 40 |
    9. 9. What about Java, .net, …?Java: Cucumber-Jvm• Pure Java• Supports: Java, JavaScript, JRuby, Scala, Python, G roovy, Ioke.NET: IronRuby• Cucumber Wrapper for IronRuby
    10. 10. Testing possibilities…• Selenium browser testing• Webrat acceptance testing• Interface testing (example mozo poc)• Many many more – just take a look at the cucumber tutorials
    11. 11. More Informationhttps://github.com/cucumber/cucumber/wikihttp://behaviour-driven.org/
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×