Using kanban and cfd to effectively manage agile testing
-
Upload
yuval-yeret -
Category
Technology
-
view
40.981 -
download
0
description
Transcript of Using kanban and cfd to effectively manage agile testing
1
development
testi
ng
effo
rt
timeend of cycle
Lean in Agile Testing
Using Kanban and Cumulative Flow to effectively manage
Agile TestingYuval Yeret
Copyright notice
These slides are licensed under Creative Commons. Feel free to use these slides & pictures as you wish, as long as you leave my name and the Agilesparks logo somewhere. /
2
Throughout a traditional project/release, workload is usually unbalanced, creating severe bottlenecks
development
testi
ng
effo
rt
time end of cycle
3
Let’s start with a classic burndown/burnup chart
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
Burndown / Burnup
DONE (BURNUP)ACTUAL REMAINING EFFORTPLANNED REMAINING EFFORT
Time
4
So we want to get to this…
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
Burndown / Burnup
DONE (BURNUP)ACTUAL REMAINING EFFORTPLANNED REMAINING EFFORT
Time
5
Keys to steady burnup
• Effectively sized and testable stories– Allow finishing work end to end quickly
• Focus on few stories at a time, rather than work on too much at once
6
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
Burndown / Burnup
Time
How do we Visualize the work status in more depth?
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
TODO Work in
Process (WIP)
Done
7
The Cumulative Flow Diagram
• Introduced in Lean Product Development by Don Reinertsen and David Anderson
• Visualize where the Features/Stories are in the workflow across time
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
TODO Work in
Process (WIP)
Done
8
TO DO IN PROGRESS DONE
Elad
Inbar
Elad
Mushon
Mushon
Inbar
InbarMushon
Elad
TO DO IN PROGRESS DONE
1 8 1
TO DO
IN PROGRESS DONE
1 8 1
How to do a CFD
9
How to do a CFD
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
10
What you see on a CFD
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
Work in Process (WIP)
Average Cycle Time
TODO
Done
Burnup
Total Scope
11
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
Elaborating the WIP
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
TODO Dev
Done
Test
Heavy load on QA
Heavy load on Dev
12
Discussion – What do you see happening in your teams?
• Are all stories finished each Sprint?– How are the teams achieving that?
• What happens to those stories that are not finished?
• How does the open defects count look during the release?
13
Lets Sprint!
This is the Kanban Story Board for a Scrum Sprint
First – lets see how it looks without any focus on Flow
14
First day - starting many stories at once - each to his
own
15
Day 4
after a few days, a story is
finally ready for testing...
16
17
18
19
Day 6
What do you think so far?
20
Day 8
21
Board at Sprint Review Time
What’s this ?
Why?
23
“Scrumfall” in CFD
1 2 3 4 5 6 7 8 9 100
20
40
60
80
100
120
Work in Process (WIP)
Average Cycle Time
TODO
Done
Burnup
Total Scope
241 2 3 4 5 6 7 8 9 10
0
20
40
60
80
100
120
If we use a WIP Limit...
TODO
Dev
Done
Test
Work in Process (WIP)
Average Cycle Time
25
Pop Quiz
• What does this mean?
Full story at http://yuvalyeret.com/2010/08/03/finding-the-right-dev-to-test-ratio-when-working-in-kanban/
Blocked/Impeded
Card
26
Pop Quiz
Full story at http://yuvalyeret.com/2010/08/03/finding-the-right-dev-to-test-ratio-when-working-in-kanban/
A lot of
WIP in
Test
Empty Test Done
Empty downstrea
m (Bubble)
Dev Done
almost Full
Test Bottleneck!
27
Dealing with bottlenecks – tactical level
D
DD
TTT
3
How can I help
current stories?
Help us with
Blocker
Fix open defects on our Stories
Help us automate tests for this story
WIP Limit!Can’t start new DEV
work!
28
Dealing with bottlenecks – strategic view
DD
D
TTT
3
How can I help you be more
efficient?
Help us do ATDD so you can develop based on our
test expectations,
and also offload some
automation effort from us
Automate
Setups and Test
Data
Improve Dev Done quality! – less retesting
for us
Half of our work is not core test work. Maybe you can take some of it, or
help us reduce waste there
Come pair with us, you’ll
probably see things from our perspective and
have some ideas how to
help!
Creating more Blue Light - TOC
29
What happens if DONE DONE is a lot of work?
• Examples:– Non-functional Testing– E2E Testing– I18N/L10N/Documentation– Test Automation
• Alternatives– Make the sprint longer to include them –
BAD– Don’t include them – how to manage
them then?
30
DONEDONE DONE
READY
Flowing all the way to DONE DONE
31
Example Policy - Classes of Service for Downstream Involvement
• Red – Must be involved hands on• Yellow – Advise/Consult, but most
work in Teams• Green – don’t need any
involvement• Why? To get best results with
available resources
32
Pop Quiz• What do you think is happening here?• Do we have a bottleneck ?
33
Build Quality In
34
Jidoka – Stop the line
• Don’t let defects accumulate and hurt you later
• Keep the open defects count LOW
35
Summary
Limit work in process:Stop starting, start
finishing
36
Want to learn more?
• Lean-flavored Agile Testing Training by Agilesparks– http://
www.agilesparks.com/files/AgileTestingAS.pdf
• Kanban training by Agilesparks– http://
www.agilesparks.com/files/KanbanforManagers.pdf
• Contact us at [email protected] for more information