SlideShare uma empresa Scribd logo
1 de 4
Baixar para ler offline
 
       
       
                                                                                                                                                                                             
                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                             

         


       
       

       

                                                                                                                                                                       

       

       

       

         

       

       

         

       

       

       

       

       

       

       

       

       

       

       

       

       
 
                            
  

  

  

  

  

  

  

  

  

  

  

  

  




                                                  Do  less  work  -­                                                                  
                                                                                             
                                                                                        
            Test   cases   and  the   defects   are   central   to   what   we   do.  We   focus   on   uncovering   more   with   the   fervent  
            hope   of   finding   less   later.   We   are   also   constantly   challenged   in   doing   this   with   less   effort   and   time  
            continually.    
              
            In  my  numerous  interactions  with  test  and  management  folks,  the  conversation  always  veers  to  two  key  
            questions   -­   (1)   Am   I   doing   enough?   Is   my   'coverage'   good   enough?   (2)How   do   I   optimize   and   do   it  
            faster?  I  have  noticed  that  most  often  test  automation  is  touted  as  the  solution  for  (1)  &  (2)   -­  The  ability  
            to  cover  more  area  with  less  effort/cost  using  technology.  I  understand,  but  feel  that  this  does  not  go  far  
            enough  to  achieve  the  real  solution  for  (1)  &  (2).    
              
            This  is  when  I  started  thinking  deeply  on  the                                               particularly  for  (2).  My   line  
            of  thinking  was  "How  can   I  ascertain  that   my  software  has  beco me   immune  to  some  of  the  test  cases  
            and  therefore  not  execute  them?"  It  is  not  doing  faster  and  cheaper,  but  really  about  'not-­                     
              
              
              
              




           www.teatimew ithtesters.com                                                                                                June   2012|44  
                      
 
                       
       The  story  of  pesticide  paradox  in  brief...   
         
       "A   poor   farmer   loses   his   crop   and   is   advised  to   use   pesticide.   The   next  season   around,  he   sprays   the  
       crop  with  DDT  killing  the  pests  and  improving  the  yield.  A  few  seasons  later,  the  pests  become  resistant  
       to  DDT  and  now  he  is  advised  to  switch  to  a  different  pesticide  'Malathion'.  The  yield   improves  but  the  
       story  repeats  again  after  a  few  seasons.  This  is  the  story  of  pesticide  paradox,  wonderfully  illustrated  by  
       Dr  Boris  Bezier  in  his  classic  book  "Software  Testing  Techniques".    
         
       The   pesticide   paradox   is   "The   pest   that   you   kill   with   a   pesticide   makes   the   pes t   resistant   to   that  
       pesticide".  This  is  used  to  illustrate  the  fact,  that  over  time  software  too  bec
       i.e.  test  cases  do  not  yield  bugs.    
         
       Let's  shift   gears   now...   Let's   look   at   defects   and   what   we   do   with   them.   We   use   the   defect   data   and  
       produce  reports  that  provide  information  about  software  quality  and  also  about  test  quality.  This  is  done  
       by  examining  data  related  to  defect  rates,  defect  densities,  defect  distribution  etc.  i.e.  we  pay  s ignificant  
       attention  to  defects.  We  know  that  as  time  progresses,  the  same  test  cases  do  not  yield  defects,  then  
       what  do  we  analyze?  Hmmm   
         
       Look   at  the   interesting   picture   below,   What   do   you  see?   It   depends   on   what   you   want  to   see   and,   at  
       possibly  on  what  distance  you  see  it  from.  Focus  on  the  black  and  move  the  eye  farther  from  the  picture  
       and  voila,  you  see  a  meaningful  phrase  instead  of  a  mix  of  fat  lines.  
         
         
         
         
         
         
         
         
         
         
         
         
       What  am  I  getting  to?  If  you  chose  to  see  defect  informat ion  only,  analyze  them  and  use  the  information  
       to   make   choices,   then   you   are   limited.   On   the   contrary   if   you  see   "no-­defect"   (i.e.   absence   of   defect)  
       and  at  the  same  time  shifting  to  a  higher  level  view  of  seeing  'defect  types'(rather  the  raw  defects),  you  
       see  new  information  suddenly,  and  this  will  help  you  find  better  answers  for  (2).    
         
       Setting  up  defect  types  (termed  as  Potential   Defect  Types-­  
       then  categorizing  the  defects  found  into  these  types,    and  more  importantly  analyzing  t hose  defect  types  
       that  have    not  surfaced  (i.e.  no  defects  of  these  types)  allows  us  to  understand  as  to  which  t est  cases  do  
       not  have  an  yield.     
         
       If   it  can  be  proven  that  the  test  cases  are  indeed  complete/adequate  (in  HBT  this  is  done  by  assessing  
       two  properties  of  test  cases  -­  countability  and  fault  traceability)  then  the  absence  of  certain  defect  types  




      www.teatimew ithtesters.com                                                                                                 June   2012|45  
                 
 
                       
       indicates   "test   case   immunity"   and   thereof   "hardening   of  software".         This   means   that   the   area   of   the  
       software   being   irritated   by   the   test   cases   have   hardened   i.e.   become   immune   and   is   clean.   Hence  
       focusing  on  this  area  of  the  software  is  therefore  not  logically  useful  and  hence  these  test  cases  can  be  
       "parked".  The  net  result  is  that  we  do  less  work  and  therefore  achieve  a  higher  degree  of  optimization.     
         
       I   can   visualize   you   shaking   your   head   in   disagreement   and   commenting   "How   can   I   'park'   these   test  
       cases  not  kno                                                                                            
       OR    
       I   do   this   anyway,   as   my   experience   enables   me   to   figure   out   which   test   cases   of   the   total   I   have   to  
       execute.  
         
       My   take   on   this   is:      let   us   do  this   logically   by   examining   the   "categories   of   empty   space"   (i.e.   absent  
       defect  types).  In  effect  we  are  assessing  the  parts  of  the  software  system  that  have  become  immune  to  
       those  types  of  defects  that  matter  for  those  areas.  
         
       Remember   that   we   are   not   examining   the   actual   defects;;   rather   we   are   examining   the   test   cases  that  
       have  passed,  across  the  last  few  cycles  of  testing,  with  a  clear  knowledge  of  the  type  of  the  defect  each  
                                                                                                    It   is  however   very  necessary  to  ensure  
       that  the  adequacy  of  test  cases  be  logically  proven  before  using  this  type  of  "test  immunity  analysis".  
         
       On   a   different   note,   we   now   know   that   empty   space   consists  of   dark   matter   that   cannot   be  seen   but  
       probably  shapes  our  universe.    See  the  unseen.  Enough  of  philosophy.  
         
       Mull   over   this.   Every   time   a   test   case   passes,  don't  pass  over   it,   use   this   knowledge   of   "no  defect"   to  
       logically  analyze  "immunity".    
         
       Do  less  work.  May  the  force  be  with  you.    
         
       Until  next  time  CIAO.  
         
         
         
         
         
         
                                                                                                     T   Ashok   is  the  Founder   &  CEO  of  STAG  
                                                                                                     Software  Private  Limited.  
         
                                                                                                     Passionate   about   excellence,   his  
         
                                                                                                     mission   is   to   invent   technologies   to      
                                                                                                                                      
                                                                                                          
                                                                                        
                                                                                        
                                                                                      He  can  be  reached  at  ash@stagsoftware.com .

                       




      www.teatimew ithtesters.com                                                                                                       June   2012|46  
                 

Mais conteúdo relacionado

Mais de STAG Software Private Limited

Are your quality metrics insightful?
Are your quality metrics insightful?Are your quality metrics insightful?
Are your quality metrics insightful?
STAG Software Private Limited
 
Weighed down by automation?
Weighed down by automation?Weighed down by automation?
Weighed down by automation?
STAG Software Private Limited
 

Mais de STAG Software Private Limited (20)

Application Scenarios of "doSmartQA -Smart Probing Assistant"
Application Scenarios of "doSmartQA -Smart Probing Assistant"Application Scenarios of "doSmartQA -Smart Probing Assistant"
Application Scenarios of "doSmartQA -Smart Probing Assistant"
 
Choked by technical debt?
Choked by technical debt?Choked by technical debt?
Choked by technical debt?
 
Are your quality metrics insightful?
Are your quality metrics insightful?Are your quality metrics insightful?
Are your quality metrics insightful?
 
Weighed down by automation?
Weighed down by automation?Weighed down by automation?
Weighed down by automation?
 
Covid19 and Clean Code Part 2 - Process & Criteria
Covid19 and Clean Code Part 2 - Process & CriteriaCovid19 and Clean Code Part 2 - Process & Criteria
Covid19 and Clean Code Part 2 - Process & Criteria
 
Seven Thinking Tools to Test Rapidly
Seven Thinking Tools to Test RapidlySeven Thinking Tools to Test Rapidly
Seven Thinking Tools to Test Rapidly
 
How to test less and accomplish more
How to test less and accomplish moreHow to test less and accomplish more
How to test less and accomplish more
 
Is regression hindering your progression?
Is regression hindering your progression?Is regression hindering your progression?
Is regression hindering your progression?
 
The Power of Checklist
The Power of ChecklistThe Power of Checklist
The Power of Checklist
 
The power of checklist
The power of checklist The power of checklist
The power of checklist
 
Webinar - 'Test Case Immunity’- Optimize testing
Webinar - 'Test Case Immunity’- Optimize testing Webinar - 'Test Case Immunity’- Optimize testing
Webinar - 'Test Case Immunity’- Optimize testing
 
Design Scientifically (How to test a user story)
Design Scientifically (How to test a user story)Design Scientifically (How to test a user story)
Design Scientifically (How to test a user story)
 
Setting a clear baseline (How to test an user story #2)
Setting a clear baseline (How to test an user story #2)Setting a clear baseline (How to test an user story #2)
Setting a clear baseline (How to test an user story #2)
 
Question to Understand (How to test an User Story #1)
Question to Understand (How to test an User Story #1)Question to Understand (How to test an User Story #1)
Question to Understand (How to test an User Story #1)
 
Language shapes the way you think
Language shapes the way you thinkLanguage shapes the way you think
Language shapes the way you think
 
Deliver Superior Outcomes Using HBT Visualization Tool
Deliver Superior Outcomes Using HBT Visualization ToolDeliver Superior Outcomes Using HBT Visualization Tool
Deliver Superior Outcomes Using HBT Visualization Tool
 
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...
 
Are Your Test Cases Fit For Automation?
Are Your Test Cases Fit For Automation?Are Your Test Cases Fit For Automation?
Are Your Test Cases Fit For Automation?
 
Think better using “Descriptive-Prescriptive” Approach
Think better using “Descriptive-Prescriptive” ApproachThink better using “Descriptive-Prescriptive” Approach
Think better using “Descriptive-Prescriptive” Approach
 
Improving Defect Yield - a three step approach
Improving Defect Yield - a three step approachImproving Defect Yield - a three step approach
Improving Defect Yield - a three step approach
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 

Último (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

Do less work - 'Test Case Immunity' can Help.

  • 1.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
  • 2.                               Do  less  work  -­         Test   cases   and  the   defects   are   central   to   what   we   do.  We   focus   on   uncovering   more   with   the   fervent   hope   of   finding   less   later.   We   are   also   constantly   challenged   in   doing   this   with   less   effort   and   time   continually.       In  my  numerous  interactions  with  test  and  management  folks,  the  conversation  always  veers  to  two  key   questions   -­   (1)   Am   I   doing   enough?   Is   my   'coverage'   good   enough?   (2)How   do   I   optimize   and   do   it   faster?  I  have  noticed  that  most  often  test  automation  is  touted  as  the  solution  for  (1)  &  (2)   -­  The  ability   to  cover  more  area  with  less  effort/cost  using  technology.  I  understand,  but  feel  that  this  does  not  go  far   enough  to  achieve  the  real  solution  for  (1)  &  (2).       This  is  when  I  started  thinking  deeply  on  the    particularly  for  (2).  My   line   of  thinking  was  "How  can   I  ascertain  that   my  software  has  beco me   immune  to  some  of  the  test  cases   and  therefore  not  execute  them?"  It  is  not  doing  faster  and  cheaper,  but  really  about  'not-­                www.teatimew ithtesters.com                                                                        June   2012|44    
  • 3.     The  story  of  pesticide  paradox  in  brief...     "A   poor   farmer   loses   his   crop   and   is   advised  to   use   pesticide.   The   next  season   around,  he   sprays   the   crop  with  DDT  killing  the  pests  and  improving  the  yield.  A  few  seasons  later,  the  pests  become  resistant   to  DDT  and  now  he  is  advised  to  switch  to  a  different  pesticide  'Malathion'.  The  yield   improves  but  the   story  repeats  again  after  a  few  seasons.  This  is  the  story  of  pesticide  paradox,  wonderfully  illustrated  by   Dr  Boris  Bezier  in  his  classic  book  "Software  Testing  Techniques".       The   pesticide   paradox   is   "The   pest   that   you   kill   with   a   pesticide   makes   the   pes t   resistant   to   that   pesticide".  This  is  used  to  illustrate  the  fact,  that  over  time  software  too  bec i.e.  test  cases  do  not  yield  bugs.       Let's  shift   gears   now...   Let's   look   at   defects   and   what   we   do   with   them.   We   use   the   defect   data   and   produce  reports  that  provide  information  about  software  quality  and  also  about  test  quality.  This  is  done   by  examining  data  related  to  defect  rates,  defect  densities,  defect  distribution  etc.  i.e.  we  pay  s ignificant   attention  to  defects.  We  know  that  as  time  progresses,  the  same  test  cases  do  not  yield  defects,  then   what  do  we  analyze?  Hmmm     Look   at  the   interesting   picture   below,   What   do   you  see?   It   depends   on   what   you   want  to   see   and,   at   possibly  on  what  distance  you  see  it  from.  Focus  on  the  black  and  move  the  eye  farther  from  the  picture   and  voila,  you  see  a  meaningful  phrase  instead  of  a  mix  of  fat  lines.                           What  am  I  getting  to?  If  you  chose  to  see  defect  informat ion  only,  analyze  them  and  use  the  information   to   make   choices,   then   you   are   limited.   On   the   contrary   if   you  see   "no-­defect"   (i.e.   absence   of   defect)   and  at  the  same  time  shifting  to  a  higher  level  view  of  seeing  'defect  types'(rather  the  raw  defects),  you   see  new  information  suddenly,  and  this  will  help  you  find  better  answers  for  (2).       Setting  up  defect  types  (termed  as  Potential   Defect  Types-­   then  categorizing  the  defects  found  into  these  types,    and  more  importantly  analyzing  t hose  defect  types   that  have    not  surfaced  (i.e.  no  defects  of  these  types)  allows  us  to  understand  as  to  which  t est  cases  do   not  have  an  yield.       If   it  can  be  proven  that  the  test  cases  are  indeed  complete/adequate  (in  HBT  this  is  done  by  assessing   two  properties  of  test  cases  -­  countability  and  fault  traceability)  then  the  absence  of  certain  defect  types        www.teatimew ithtesters.com                                                                        June   2012|45    
  • 4.     indicates   "test   case   immunity"   and   thereof   "hardening   of  software".       This   means   that   the   area   of   the   software   being   irritated   by   the   test   cases   have   hardened   i.e.   become   immune   and   is   clean.   Hence   focusing  on  this  area  of  the  software  is  therefore  not  logically  useful  and  hence  these  test  cases  can  be   "parked".  The  net  result  is  that  we  do  less  work  and  therefore  achieve  a  higher  degree  of  optimization.       I   can   visualize   you   shaking   your   head   in   disagreement   and   commenting   "How   can   I   'park'   these   test   cases  not  kno     OR     I   do   this   anyway,   as   my   experience   enables   me   to   figure   out   which   test   cases   of   the   total   I   have   to   execute.     My   take   on   this   is:     let   us   do  this   logically   by   examining   the   "categories   of   empty   space"   (i.e.   absent   defect  types).  In  effect  we  are  assessing  the  parts  of  the  software  system  that  have  become  immune  to   those  types  of  defects  that  matter  for  those  areas.     Remember   that   we   are   not   examining   the   actual   defects;;   rather   we   are   examining   the   test   cases  that   have  passed,  across  the  last  few  cycles  of  testing,  with  a  clear  knowledge  of  the  type  of  the  defect  each    It   is  however   very  necessary  to  ensure   that  the  adequacy  of  test  cases  be  logically  proven  before  using  this  type  of  "test  immunity  analysis".     On   a   different   note,   we   now   know   that   empty   space   consists  of   dark   matter   that   cannot   be  seen   but   probably  shapes  our  universe.    See  the  unseen.  Enough  of  philosophy.     Mull   over   this.   Every   time   a   test   case   passes,  don't  pass  over   it,   use   this   knowledge   of   "no  defect"   to   logically  analyze  "immunity".       Do  less  work.  May  the  force  be  with  you.       Until  next  time  CIAO.                 T   Ashok   is  the  Founder   &  CEO  of  STAG     Software  Private  Limited.     Passionate   about   excellence,   his     mission   is   to   invent   technologies   to                     He  can  be  reached  at  ash@stagsoftware.com .        www.teatimew ithtesters.com                                                                        June   2012|46