belgium testing days: shift your testing mindset

66
Lisa Crispin CoAuthor with Janet Gregory, Agile Tes)ng: A Prac)cal Guide for Testers and Agile Teams, and the upcoming More Agile Tes)ng Copyright 2014, Lisa Crispin and Janet Gregory

Upload: lisacrispin

Post on 09-May-2015

578 views

Category:

Technology


0 download

DESCRIPTION

Change your mindset from finding bugs to preventing them, and to helping the customer build quality in to the product.

TRANSCRIPT

Page 1: Belgium Testing Days: Shift your testing mindset

Lisa  Crispin  Co-­‐Author  with  Janet  Gregory,  Agile  Tes)ng:  A  Prac)cal  Guide  for  Testers  and  Agile  Teams,  and  the  upcoming  More  Agile  Tes)ng    

Copyright  2014,  Lisa  Crispin  and  Janet  Gregory  

Page 2: Belgium Testing Days: Shift your testing mindset
Page 3: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

•  Some  slides  and  story-­‐telling  •  Learning  through  exercises  and  discussions    

Page 4: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Page 5: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

•  IteraBon  (sprint)  •  Feature  (epic,  theme  or  capability)  •  Story  • Done  (story  done,  feature  done,  release  done)  •  Feedback  

5  

Page 6: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• more  than  “just”  tesBng  code  • an  acBvity;  not  a  phase  

6  

Page 7: Belgium Testing Days: Shift your testing mindset

What  challenges  do  you  see  for  tes2ng  in  agile?  

7  

Page 8: Belgium Testing Days: Shift your testing mindset
Page 9: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Instead  of    ◦ We’re  here  to  find  bugs  …  or  ensure  requirements  are  met  …  or  break  the  soWware  …  

Think  – How  do  we  “bake  quality  in”  &  help  company  succeed?  

9  

Page 10: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Can  you  think  of  some  ways  that  you  cross  boundaries  in  how  you  work?  

10  

Also  DevOps,  UX  designers,  others  

Page 11: Belgium Testing Days: Shift your testing mindset

11  

•  Simplicity  •  Feedback  • Respond  to  change  

Page 12: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Analytical Relentlessly Curious Observant Skeptical Empiricist Critical Thinker Investigator

hCp://www.slideshare.net/ehendrickson  

12  

Page 13: Belgium Testing Days: Shift your testing mindset

13  

What  does  this  phrase  mean  to  you?  What  skills  does  tesBng  require?  Discuss!  

 

Page 14: Belgium Testing Days: Shift your testing mindset

Breadth of Skills

Dep

th o

f Ski

lls

T-­‐shaped  Skill-­‐set  

Page 15: Belgium Testing Days: Shift your testing mindset

15  

Page 16: Belgium Testing Days: Shift your testing mindset

16  

play,  experiment,  learn  keeps  us  vital  and  alive  Play,  experiment,  learn!  

Page 17: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Gives  us  an  enthusiasm  for  life  that  is  irreplaceable.  Without  it,  life  just  doesn’t  taste  good  -­‐  Lucia  Capocchione  •  You  can  discover  more  about  a  person  in  an  hour  of  play  than  in  a  year  of  conversaBon.  -­‐  Plato  •  Play  is  our  brain’s  favourite  way  of  learning  –  Dianne  Ackerman  

         PorBa  Tung  (see  references)  

17  

Page 18: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

 Instead  of  saying  NO,    

or  being  the  gatekeeper    

Be  the  informaBon  provider  so  business  can  make  the  decisions  

       

Ques2ons  about  the  thinking  tester?  18  

Page 19: Belgium Testing Days: Shift your testing mindset
Page 20: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• CommunicaBon  means  ...    sharing  ◦  Ideas,  goals,  informaBon,  decisions,  soluBons    

• CollaboraBon  means  ...  ◦ Working  together  to  set  goals,  experiment,  find  soluBons  ◦ The  whole  team    …..  

20  

Page 21: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Power  of  Three  • Three  Amigos  • Pairing  • ConBnuous  feedback  

21  

Page 22: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

•   On  an  index  card,  each  person  draw  what  your  “word”  means  to  you  personally    4  minutes  

• Now,  collaborate  –  remember  what  is  important  to  you  …  • Draw  one  picture  (large  paper)  that  everyone  can  ‘live  with’.          7-­‐8  minutes  

22  

Page 23: Belgium Testing Days: Shift your testing mindset

Picture  by  Augusto  EvangelisB,  based  on  diagram  from  Elisabeth  Hendrickson  

Page 24: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

User  Story  

Expand  Tests  

High  level  AT  

Auto-­‐  mate  tests  

Code  &  

Execute  tests  

Explore    

Exploratory  TesBng  

Accept  Story  

Fix  defects  

Explore  examples  

24  

Page 25: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Shoppers  can  easily  and  securely  save  billing  info  to  re-­‐use  for  each  purchase,  so  that  repeat  business  increases  by  X  %.  

25  

Desired  behavior  (BDD)  Given  I  am  a  shopper  checking  out,  When  I  enter  my  billing  informaBon,  I’m  prompted  to  save  it  securely  for  future  

convenience      

Page 26: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Shoppers  can  easily  and  securely  save  billing  info  to  re-­‐use  for  each  purchase,  so  that  repeat  business  increases  by  X  %.  

26  

Given…  

When…  

Then…  

Page 27: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Examples  provide  common  language  •  Shared  common  understanding  • Coding  and  tesBng  concurrently  •  Involves  whole  team  •  Shared  definiBon  of  DONE  • Prevents  defects  

27  

Page 28: Belgium Testing Days: Shift your testing mindset

28  

• QuesBon  • Elicit  examples  • Uncover  hidden  assumpBons  

Page 29: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

 Instead  of  saying  NO,    

or  being  the  gatekeeper    

Be  the  informaBon  provider  so  business  can  make  the  decisions  

       

Ques2ons  about  the  collabora2on?  29  

Page 30: Belgium Testing Days: Shift your testing mindset
Page 31: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Checking:  Does  the  system  do  what  it's  supposed  to  do?  • Exploring:  Are  there  any  other  risks  or  vulnerabiliBes  that  we  haven't  thought  about  yet?  • TesBng  ==  checking  +  exploring  

**Elisabeth  Hendrickson,  “The  Two  Sides  of  SoWware  TesBng”,  Agile  ConnecBon    

GUI  

API  

Unit  Tests  

31  

Page 32: Belgium Testing Days: Shift your testing mindset

32  

Page 33: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

From  Mas  Barcomb  

Page 34: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

It’s  not  just  about  code  !!!  ◦  Test  business  value  ◦  Test  assumpBons  ◦ Uncover  hidden  assumpBons  

The  goal:    ◦  Shared  common  understanding  of  the  story  ◦ PrevenBng  defects  (eliminate  waste)  

34  

Page 35: Belgium Testing Days: Shift your testing mindset

• Why  are  we  doing  this?  • Who  can  help?  Hinder?  Who  is  impacted?  • How  can  they  help  or  hinder?  Impacts  • What  can  we  do  to  support  impacts?  

           Deliverables  

 

35  

Page 36: Belgium Testing Days: Shift your testing mindset

36  

Stakeholders  /  personas   Impacts  

Possible  deliverables  

Possible  deliverables  

Page 37: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

   

AcBviBes  by  Bme  

Child  Storie

s  

From  Janet  Gregory  &  MaC  Barcomb  

Jeff  Pason:  hsp://www.agileproductdesign.com/blog/the_new_backlog.html  

Page 38: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

From  Janet  Gregory  &  MaC  Barcomb  

Story  Mapping  

Page 39: Belgium Testing Days: Shift your testing mindset

39  

Page 40: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Understand  the  business  needs  • What  level  are  at?  • Collaborate  appropriately  

Release  level  

IteraBon  level  

Story  test  level  

Task  level  

System

 level  

40  

Page 41: Belgium Testing Days: Shift your testing mindset

41  

Page 42: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Know  your  customers  • Make  them  real  • Plan  your  exploratory  tesBng  using  them  

•  Picture  –  from  Jeff  Pason’s  PragmaBc  Personas  weekly  column  on  SBcky  Minds  (1/25/2010)  

42

Page 43: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Template:  •  Explore  (target)  •  With  (resources)  •  To  discover  (informa)on)    Where:  •  Target:  Where  are  you  exploring  •  Resources:  What  resources  will  you  bring  with  you  •  Informa2on:  What  kind  of  informaBon  are  you  hoping  to  find?  

•  Explore  It!  by  Elisabeth  Hendrickson  

43

Page 44: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

 Explore  ediBng  profiles    With  real  user  names    To  discover  if  there  are  instances  where  username  constraints  are  not  enforced    A  tool  to  guide  explora)on.  Keep  it  simple.  

44

Page 45: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

 Story  backlog  for  feature  “Remember  Me”  New  shoppers  are  encouraged  to  create  a  login  account  with  username,  password,  and  security  features  so  that  signups  increase  by  X  %.  

Think  of  some  personas  to  use  for  tesBng,  and  write  some  charters  to  guide  your  exploratory  tesBng  

45  

Page 46: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

 Instead  of  saying  NO,    

or  being  the  gatekeeper    

Be  the  informaBon  provider  so  business  can  make  the  decisions  

       

Ques2ons?  46  

Page 47: Belgium Testing Days: Shift your testing mindset
Page 48: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Know  your  context  • Have  a  tool  box  full  •  Simple  is  oWen  best  • Use  your  imaginaBon  

Let’s  look  at  some  examples  

48  

Page 49: Belgium Testing Days: Shift your testing mindset

Taken  from  Ready  to  use  Graphic  Organizers    for  primary    grade  teachers  

Page 50: Belgium Testing Days: Shift your testing mindset

Day  1    

A  new  user  wants  to  create  her  account  

Day  1    

The  new  user  wants  to  log  into  the  system    

Day  2    

An  exisBng  user  wants  to  change  her  password  

Day  2    

An  exisBng  user  forgets  her  password  

Day  2    

The  new  user  wants  to  log  into  the  system    

Day  30    

The  system  asks  user  to  change  her  password  

Day  ??          

…….    

Day  60    

The  user  wants  to  delete  her  account  

Day  ??          

…….    

Day  ??          

…….    

Page 51: Belgium Testing Days: Shift your testing mindset

Words  /  Phrases  •  I  wonder  ….  • What  caught  your  asenBon?  •  Could  you  show  me?  • What  makes  you  think  there  is  more?  

Ques2ons  /  Predic2ons  •  What  might  happen  next?  

•  Why  would  that  be?  •  What  is  the  worst  thing  that  could  happen?    

•  ….  or  the  best?  •  What  assumpBons  do  you  have?  

Page 52: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Block  account  

User  enters  wrong  

password    

Wrong  password  a  2nd  Bme;  Issue  

warning  

User  can’t  log  in  

They  are  in  the  

database  

The  credenBals  

meet  req’ts  

They  entered  their  

credenBals  correctly    

Their  password  expired  ….  

Wrong  password  a  third  Bme  

Prevent  user  from  logging  in  again;  Display  msg  

52  

Page 53: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• PracBce  anBcipaBng  what  will  happen  • Define  your  tests  • Check  –  running  tests  or  collaborate  with  customers  and  programmers  before  coding  • Be  prepared  to  change  your  tests  if  your  predicBons  are  wrong  •  Learn  by  reviewing  –  what  quesBons  could  you  have  asked  first.  

53  

Page 54: Belgium Testing Days: Shift your testing mindset

Sub  topic  

Sub  topic  

Sub  topic  

MAIN  TOPIC  

Sub  topic  

Sub  topic  

first  2me  

change  

new  account  

password  rules  

encryp2on      

save   user  name  

rules  

Login  :  User  name  &  password  

Page 55: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

55  

Page 56: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

 Story  backlog  for  “Remember  Me”  capability  

Shoppers  can  easily  and  securely  save  billing  info  to  re-­‐use  for  each  purchase,  so  that  repeat  business  increases  by  X  %.  

56  

Page 57: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Think  simple  • Have  a  variety  of  tools  • Adapt  to  your  needs  •  Look  in  places  you  may  not  have  considered  

57  

Page 58: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

 Instead  of  saying  NO,    

or  being  the  gatekeeper    

Be  the  informaBon  provider  so  business  can  make  the  decisions  

       

Ques2ons  about  the  tools?  58  

Page 59: Belgium Testing Days: Shift your testing mindset
Page 60: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

• Curiosity  • Ability  to  observe  • Ability  to  challenge  • Ability  to  adapt  • To  recognize  contexts    • Ability  to  THINK  !  

60  

Page 61: Belgium Testing Days: Shift your testing mindset

61  

Challenge  Yourself  !  

What  experiments  will  you  try  back  at  work?  

Page 62: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

Agile  Tes)ng:  A  Prac)cal  Guide  for  Testers  and  Agile  Teams  

Coming  soon:  More  Agile  Tes)ng  !  

By  Lisa  Crispin  and  Janet  Gregory    www.agiletester.ca  Contact  info  www.lisacrispin.com  Email:  [email protected]  Twiser:  lisacrispin  

62  

Page 63: Belgium Testing Days: Shift your testing mindset

•  Elisabeth  Hendrickson  �  CAST  keynote  hsp://www.slideshare.net/ehendrickson  �  Explore  It!  –  new  book  on  PragmaBc  Programmers  �  hsp://www.agileconnecBon.com/arBcle/two-­‐sides-­‐soWware-­‐tesBng-­‐checking-­‐and-­‐exploring  

•  Ben  Kelly,  hsp://lets-­‐test.com/wp-­‐content/uploads/2012/05/LetsTest2012-­‐BenKelly-­‐TheTesBngDead.pdf  

•  Markus  Gartner,  hsp://www.shino.de/2012/07/16/cast-­‐2012-­‐the-­‐tesBng-­‐dead/,  plus  his  book  ATDD  By  Example  

•  Paul  Carvalho,  hsp://www.agilejournal.com/arBcles/columns/column-­‐arBcles/6515-­‐low-­‐tech-­‐tools-­‐for-­‐the-­‐thinking-­‐tester  

•  Ready  to  Use  Graphic  Organizers  •  Alister  Scos,  tesBng  ice  cream  cone  anB-­‐pasern,  hsp://waBrmelon.com/2012/01/31/introducing-­‐the-­‐soWware-­‐tesBng-­‐ice-­‐cream-­‐cone/  

•  Sharon  Robson,  Test  AutomaBon  Pyramid  Expanded,  hsp://blog.soWed.com/2013/08/26/1883/  

Page 64: Belgium Testing Days: Shift your testing mindset

•  hsp://www.exampler.com  -­‐  Brian  Marick’s  web  site  •  Gojko  Adzic,  Bridging  the  Communica)on  Gap,  2009;  Specifica)on  by  Example,  2011,  Impact  Mapping,  2013  

•  www.sBckyminds.com/    PragmaBc  Personas  -­‐  Jeff  Pason’s  weekly  column  1/25/2010  

•  Jean  Tabaka,  Collabora)on  Explained,  2006  Addison-­‐Wesley  •  hsp://www.uie.com/arBcles/indispensable_skills  •  PorBa  Tung  –  Power  of  Play    hsp://www.selfishprogramming.com/category/playmaking/  

•  Esther  Derby  and  Diana  Larsen,  Agile  Retrospec)ves  •  Linda  Rising,  Small  Experiments,  hsp://web.lindarising.info/uploads/Small_Experiments.pdf  

•  Liz  Keogh,  “a  simple  way  to  esBmate  complexity”,  hsp://lizkeogh.com/2013/07/21/esBmaBng-­‐complexity/  (and  see  her  related  blog  posts)  

 

Page 65: Belgium Testing Days: Shift your testing mindset

•  Tastycupcakes.org,  games  for  learning  •  Gamestorming  retreat  hsp://www.co-­‐learning.be/#agenda/GamestormingRetreat/06092014  

•  Chaos  Monkey  &  Ne{lix  hsp://techblog.ne{lix.com/2012/07/chaos-­‐monkey-­‐released-­‐into-­‐wild.html  

•  Weekend  TesBng:  www.weekendtesBng.org  •  Michael  Feathers,  Working  EffecBvely  with  Legacy  Code,  hsp://www.amazon.com/Working-­‐EffecBvely-­‐Legacy-­‐Michael-­‐Feathers/dp/0131177052  

•  Strangler  pasern  for  rewriBng  legacy  code:      hsp://marBnfowler.com/bliki/StranglerApplicaBon.html  

 

Page 66: Belgium Testing Days: Shift your testing mindset

Copyright  2014  Lisa  Crispin  and  Janet  Gregory  

 Instead  of  saying  NO,    

or  being  the  gatekeeper    

Be  the  informaBon  provider  so  business  can  make  the  decisions  

       

Any  unanswered  ques2ons  /  concerns?  66