Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance...
Transcript of Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance...
![Page 1: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/1.jpg)
Getting it Right:
Defining Acceptance Criteria
so there are No Surprises
Emily Midgley
&
Megan Evans
![Page 2: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/2.jpg)
Acceptance Criteria
• Introduction
• What’s in it for you
• Why we chose this standard
• How we write Acceptance
Criteria
• Lessons learned
Agenda
![Page 3: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/3.jpg)
User Story
Acceptance
Criteria
Rationale
3 Components of a Story Card
![Page 4: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/4.jpg)
Acceptance Criteria
![Page 5: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/5.jpg)
Collaborative approach
to creating examples
that prove out
requirements.
Our Acceptance Criteria standard
![Page 6: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/6.jpg)
Our Acceptance Criteria standard
GIVEN <an initial context>
WHEN <something happens>
THEN <observable outcome(s)>
![Page 7: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/7.jpg)
Example Scenario
Scenario Outline: Multi-policy discount for
policy holder
Given a drone quote
And “Other Policy” is Yes
When quote rate is calculated
Then the Multi-Policy Discount is $25
An initial condition …
Something that happens …
Observable outcome …
![Page 8: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/8.jpg)
Benefits of Using This Method
Collaboration
Up-front questioning
Common understanding
![Page 9: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/9.jpg)
Why is this important - the Big Picture
![Page 10: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/10.jpg)
Writing
Acceptance
Criteria
![Page 11: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/11.jpg)
ContextBackground
WHEN
AND …
THEN
GIVENScenario
AND …
THEN
AND …
AND …
Acceptance Criteria:
WHEN
GIVEN Scenario
Rationale
User Story:Story Card
Format
![Page 12: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/12.jpg)
Scenarios
DOES
Include a specific example
Specify what the system does
Describe the business functionality
DOES NOT
Restate business rules
Describe how to use the system
Describe software design
![Page 13: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/13.jpg)
GIVEN <an initial context>
DOES
Reflect the business intent
Describe only the required context for the scenario
Express a pre-existing condition
Use the ‘AND’ clause when there is more than one pre-existing condition
DOES NOT
Reflect technical implementation or developer actions
Describe more than the required context for the scenario
Express an action
![Page 14: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/14.jpg)
WHEN<something happens>
DOES
Describe the ‘what’
Consist of a single
action
Execute the event
or action you are
testing
DOES NOT
Describe the ‘how’
Use the ‘AND’
clause
![Page 15: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/15.jpg)
THEN<observable outcome(s)>
DOES Describe what the system
should do
Describe the business result
Verify only the outcome relative to the action
Use the ‘AND’ clause when there is more than one observable outcome
DOES NOTDescribe what the user
does
Describe something part
of the implementation
![Page 16: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/16.jpg)
Set the Right Level of DetailNo magic formula.
1. Talk to your team.
2. Understand the card.
3. Positive & negative
scenarios.
4. Alternate & exception
scenarios.
5. Use other places to
document what doesn’t
belong.
6. Pick one example to
show with multiple values.
Think critically & use
professional judgment.
![Page 17: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/17.jpg)
Alternative Ways
to Write Complex Scenarios
![Page 18: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/18.jpg)
Use AND for Multiple Clauses
![Page 19: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/19.jpg)
Use
Tables
for
Multiple
Clauses
![Page 20: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/20.jpg)
Use Tables for Multiple ClausesComparing AND with a Table
Context: Secret code color is blue on Tuesday.
Scenario: Try blue on Tuesday
Given the secret code is blue
And the day is Tuesday
When I guess blue
Then I am right
Scenario: Try red on Tuesday
Given the secret code is blue
And the day is Tuesday
When I guess red
Then I am wrong
Scenario: Try blue on TuesdayGiven the following data
| code| day|
| blue | Tue |
When I guess blue
Then I am right
Scenario: Try red on Tuesday
Given the following data| code| day|
| blue | Tue |
When I guess red
Then I am wrong
![Page 21: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/21.jpg)
Tables for Multiple Examples
![Page 22: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/22.jpg)
Scenario OutlineContext:
Secret code color is blue on Tuesdays.
Scenario Outline: Secret code colors
Given the secret code is <code>
And the day is <day>
When I guess <guess>
Then I am <verdict>
Examples:
| code |Day | guess | verdict |
| blue | Tue |blue | right |
| red | Tue |blue | wrong |
![Page 23: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/23.jpg)
Reinforced Concepts
![Page 24: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/24.jpg)
1
2
What We’ve Learned
3
4
5
Sequence
Shift left
Consistency
Formatting
Collaboration
6 Keep learning
![Page 25: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/25.jpg)
Advocate to Different Roles
PMBusiness,
Sponsor
Tech
LeadDeveloper
Tester
![Page 26: Getting it Right: Defining Acceptance Criteria so there ......Getting it Right: Defining Acceptance Criteria so there are No Surprises Emily Midgley & Megan Evans. Acceptance Criteria](https://reader030.fdocuments.in/reader030/viewer/2022040905/5e78de9699c7d90721328ebd/html5/thumbnails/26.jpg)
References• Adzic, G. (2011). Specification by example: How
successful teams deliver the right software. Shelter
Island, NY: Manning.
• Smart, J.F. (2015). BDD in Action. Shelter Island, NY:
Manning.
• International Institute of Business Analysis. (2015). A
Guide to the Business Analysis Body of
Knowledge® (3rd ed.) Toronto, ON, CAN:
International Institute of Business Analysis
• North, D. (n.d.). What’s in a story? Retrieved from
https://dannorth.net/whats-in-a-story/