practical behavior driven development

35
Practical Behavior Driven Development

Upload: clayton-lengel-zigich

Post on 06-Dec-2014

588 views

Category:

Technology


3 download

DESCRIPTION

Presentation I gave at the QA Southwest conference in October 2012.

TRANSCRIPT

Page 1: Practical Behavior Driven Development

Practical Behavior Driven Development

Page 2: Practical Behavior Driven Development

Clayton [email protected]

Page 3: Practical Behavior Driven Development

BDD?

Page 4: Practical Behavior Driven Development

Conversation

Page 5: Practical Behavior Driven Development

Discovery

Page 6: Practical Behavior Driven Development

Shared Language

Page 7: Practical Behavior Driven Development

TDD

Page 8: Practical Behavior Driven Development

ATDD

Page 9: Practical Behavior Driven Development

xDD

Page 10: Practical Behavior Driven Development

DeliberateDiscoveryWorkshop

Page 11: Practical Behavior Driven Development

Your Org on BDD

Page 12: Practical Behavior Driven Development

Given what context?

Page 13: Practical Behavior Driven Development

How didI Get Here?

Page 14: Practical Behavior Driven Development

Why doI want todo this?

Page 15: Practical Behavior Driven Development

Where doI go from here?

Page 16: Practical Behavior Driven Development

What if there’s a problem?

Page 17: Practical Behavior Driven Development

Is this behaviorexpected?

Page 18: Practical Behavior Driven Development

Scenario: Generating a report for my division Given I am a division manager When I generate a report for my division Then I should see data specific to my division Scenario: Generating a report for all divisions Given I am a site manager When I generate a report for my site Then I should see data for all divisions in my site

Page 19: Practical Behavior Driven Development

GivenWhenThen

Page 20: Practical Behavior Driven Development

Hidden Dangers

Page 21: Practical Behavior Driven Development

focuson

tools

Page 22: Practical Behavior Driven Development

scenariosas

tests

Page 23: Practical Behavior Driven Development

cargocults

Page 24: Practical Behavior Driven Development

fullstackabuse

Page 25: Practical Behavior Driven Development

Scenario: Generating a report for my division Given I am a "division" manager When I "generate" a report for my "division" Then I should see "data" specific

to my "division"

Page 26: Practical Behavior Driven Development

Scenario: Generating a report for my division Given I am a "division" manager And my division had "$100,000" in revenue When I "generate" a report for my "division" Then I should see "$100,000.00" in the "revenue total" column

Page 27: Practical Behavior Driven Development

Scenario: Generating a report for my division Given an organization "Acme, Inc" And a site manager named "Laura" that works for "Acme, Inc" And a division manager named "Eric" that works for site manager "Laura" And I am a "division" manager named "Eric" And my division had "$100,000" in revenue When I "generate" a report for my "division" Then I should see "$100,000.00" in the "revenue total" column

Page 28: Practical Behavior Driven Development

Scenario: Generating a report for my division Given an organization "Acme, Inc" And a site manager named "Laura" that works for "Acme, Inc" And a division manager named "Eric" that works for site manager "Laura" And I am a "division" manager named "Eric" And I am logged in as "Eric" And I click on "Reports" And my division had "$100,000" in revenue And I click on "Generate Report" When I "generate" a report for my "division" Then I should see "$100,000.00" in the "revenue total" column And I should see the "Save Report" button

Page 29: Practical Behavior Driven Development
Page 30: Practical Behavior Driven Development
Page 31: Practical Behavior Driven Development

DiscoverFirst

Page 32: Practical Behavior Driven Development

DescribeNext

Page 33: Practical Behavior Driven Development

AutomateLast

Page 34: Practical Behavior Driven Development

Dan North / @tastapodLiz Keogh / @lunivoreMatt Wynne / @mattwynne

Page 35: Practical Behavior Driven Development

Clayton Lengel-Zigich@claytonlz

slideshare.net/claytonlz