+ All Categories
Home > Technology > Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

Date post: 25-Jun-2015
Category:
Upload: excella-consulting
View: 162 times
Download: 0 times
Share this document with a friend
Description:
Cathy Burke, Business Analyst, Consumer Financial Protection Bureau Stephanie Vineyard, Managing Consultant, Excella This session includes a discussion about the transition to the agile scrum software delivery model, including the experience of adjusting to the agile BA role. The speakers will also talk about creating testable requirements with examples and the journey towards test automation of business facing functional tests.
Popular Tags:
26
Making testable requirements a reality Lessons learned by an Agile team
Transcript
Page 1: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

Making testable requirements a reality Lessons learned by an Agile team

Page 2: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

Greetings

§  Transition to Scrum

§  Testable Requirements

§  Automated Testing

2

Page 3: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

Transition to Scrum

3

Page 4: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

Common Misconceptions

Chaos

4

Agile

Page 5: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

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

Continuous Improvement

6

Reflect

Adapt

Page 7: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

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

Testable Requirements

8

Page 9: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

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

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

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

Gherkin Acceptance Tests

12

Page 13: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

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

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

Gherkin syntax

¨  Given <situation> ¨  When <action> ¨  Then <expected result>

15

Page 16: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

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

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

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

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

Where we’re going

20

Page 21: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

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

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

Automated testing is an agile practice

23

Page 24: Making Testable Requirements a Reality by Cathy Burke and Stephanie Vineyard

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

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

You can reach us with more questions or for other information at [email protected] and [email protected] .

Thank you for joining us.


Recommended