Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard
-
Upload
excella-consulting -
Category
Technology
-
view
163 -
download
0
description
Transcript of Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard
![Page 1: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/1.jpg)
Making testable requirements a reality Lessons learned by an Agile team
![Page 2: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/2.jpg)
Greetings
§ Transition to Scrum
§ Testable Requirements
§ Automated Testing
2
![Page 3: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/3.jpg)
Transition to Scrum
3
![Page 4: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/4.jpg)
Common Misconceptions
Chaos
4
Agile
![Page 5: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/5.jpg)
Best practices for scrum transition
5
Respect
Openness
Commitment Courage
Focus Whole Team
![Page 6: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/6.jpg)
Continuous Improvement
6
Reflect
Adapt
![Page 7: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/7.jpg)
Changes for Business Analysts
§ Continuous engagement throughout project lifecycle
§ Short intervals, light weight requirements
§ Adapt business analysis techniques and deliverables
7
![Page 8: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/8.jpg)
Testable Requirements
8
![Page 9: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/9.jpg)
The essence of building a program is debugging the specification.
- Frederick Brooks (1987)
9
![Page 10: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/10.jpg)
Writing Testable Requirements
§ Collaborative Conversations ¨ Develop shared understanding of the requirements ¨ Elicit examples of expected business value
§ Acceptance Tests ¨ Driven by business need ¨ Implementation details for the feature
¨ Business specific language
10
![Page 11: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/11.jpg)
Light-weight, living documentation
§ Describe working software
§ Update when ¨ Requirements change ¨ New features are implemented
¨ Defect discovered
11
![Page 12: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/12.jpg)
Gherkin Acceptance Tests
12
![Page 13: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/13.jpg)
Collaborative Test Writing
Build the right thing
Build the thing right
13
![Page 14: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/14.jpg)
14
gher·kin ˈgərkin/ noun 1. a small variety of cucumber, or a young green cucumber used for pickling.
https://www.flickr.com/photos/ogil/
![Page 15: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/15.jpg)
Gherkin syntax
¨ Given <situation> ¨ When <action> ¨ Then <expected result>
15
![Page 16: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/16.jpg)
16
User Story Acceptance Criteria
As a Meeting Facilitator I want to buy a caffeinated beverage So that I am alert for my afternoon meetings.
1. There is a shop nearby to buy caffeinated beverages
2. The caffeinated beverage of my choice is available in the shop
How a User Story Becomes Acceptance Tests
![Page 17: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/17.jpg)
How a User Story Becomes Acceptance Tests
Feature: Caffeinated beverages for meeting facilitators Scenario 1: Buy a cup of coffee § Given that I prefer coffee
§ When I enter a coffee shop
§ And I place my order
§ And I pay for my order
§ Then I receive a cup of coffee
17
Scenario 2: Buy a cup of tea § Given that I prefer tea
§ When I enter a tea room
§ And I place my order
§ And I pay for my order
§ Then I receive my cup of tea
![Page 18: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/18.jpg)
How a User Story Becomes Acceptance Tests
18
Feature: Caffeinated beverages for meeting facilitators Scenario Outline: Buy a caffeinated beverage § Given that I prefer <beverage>
§ When I enter a <shop>
§ And I place my order
§ And I pay for my order
§ Then I receive my <beverage> Examples: | beverage | shop | coffee | coffee shop | tea | tea room | high caf soda |convenience store
![Page 19: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/19.jpg)
Gherkin style
19
§ Imperative style ¨ “How” you want machine to
act, and “what” happens as a result
Moved from Towards
§ Declarative style ¨ “What” you want machine to
do, and “how” is determined by the computer
![Page 20: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/20.jpg)
Where we’re going
20
![Page 21: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/21.jpg)
Test new features
§ Definition of Done
§ “Did we build the right thing?”
§ Execution of business facing Acceptance Tests
21
![Page 22: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/22.jpg)
Regression Testing
§ Challenges of manual regression testing ¨ New features create more complexity in application ¨ Dull, repetitious activity
¨ Time to execute manual tests increases as new product features are added
§ Opportunity cost of manual regression testing ¨ Delays release of new software
¨ Delays discovery
22
![Page 23: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/23.jpg)
Automated testing is an agile practice
23
![Page 24: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/24.jpg)
What makes test automation an agile practice?
§ Provides frequent and immediate feedback on software quality
§ Courage and creativity with a safety net
§ Always delivering working software
24
![Page 25: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/25.jpg)
Path to automation
§ Automation takes time and effort
§ Separate software development project
§ Balance level of effort to automate with value provided
§ Prioritize test automation efforts
§ Management support required
§ Return on investment ¨ More efficient software delivery team ¨ Higher quality software
25
![Page 26: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard](https://reader034.fdocuments.net/reader034/viewer/2022042700/558c1949d8b42ae2718b46f6/html5/thumbnails/26.jpg)
You can reach us with more questions or for other information at [email protected] and [email protected] .
Thank you for joining us.