SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
The dynamic interaction of passed and failed
   requirements during software testing




                Copyrights (c) 2011-2013 Pragmatic
                                                     1
                       Cohesion Consulting
Motivation
• In my professional experience, I have
  repeatedly witnessed systemic issues during
  Software Verification that prompted me to
  develop the model presented in this paper.
• It is my hope that the non-intuitive results
  that the model yields help software
  development team better understand certain
  dynamic behavior embedded in the software
  development process.
                 Copyrights (c) 2011-2013 Pragmatic
                                                      2
                        Cohesion Consulting
Requirements Statuses
• We are interested in 2 simple sets of
  requirements. All requirements within each
  set share one of the following statuses:
  – The first one represents requirements that have
    been implemented i.e. requirements for which the
    development team has created actual software
    code. Let’s call this set of requirements ISR.
  – The second one represents requirements that
    have failed testing after they were implemented
    by the development team. Let’s call this second
    set of requirements FSR.
                  Copyrights (c) 2011-2013 Pragmatic
                                                       3
                         Cohesion Consulting
Requirement States Probabilities
• Let’s call SFR the probability that a
  requirement that has been implemented fails
  testing. When this failure happens the
  requirement becomes part of the FSR set
  otherwise it remains in the ISR set.
• Let’s call SFXR the probability that a failed
  requirement gets fixed. When the fix takes
  place, the requirement is no longer part of the
  FSR set but it moves into the ISR set.
                 Copyrights (c) 2011-2013 Pragmatic
                                                      4
                        Cohesion Consulting
Requirement States Probabilities
• The following probability constraints exist:
   0 <= SFR <= 1
   0 <= SFXR <=1
• We can derive a probability transition matrix that
  captures the possible transitions of a requirement
  from one set to the other:
   From ISR to ISR, probability = 1-SFR
   From ISR to FSR, probability = SFR
   From FSR to ISR, probability = SFXR
   From FSR to FSR, probability = 1-SFXR


                      Copyrights (c) 2011-2013 Pragmatic
                                                           5
                             Cohesion Consulting
Transition probability matrix
Let M be the transition probability matrix,
M=
                              To ISR                      To FSR

           From ISR 1-SFR                            SFR

           From FSR SFXR                             1-SFXR




                             Copyrights (c) 2011-2013 Pragmatic
                                                                   6
                                    Cohesion Consulting
Two-Step Transition probabilities
• The following question is particularly
  interesting:
  – given the transition probability matrix M and the
    fact that a requirement has been added to the ISR
    set, what is the probability that this same
    requirement will be in the ISR set two transitions
    in the future?



                   Copyrights (c) 2011-2013 Pragmatic
                                                         7
                          Cohesion Consulting
Two-Step Transition probabilities
• The problem is not as obvious as it seems;
  here is is why:
  – When a Requirement enters set ISR it has a SFR
    probability of being moved to set FSR and a 1-SFR
    probability of staying in ISR. Once in FSR, it has a
    SFXR probability of moving into ISR and a 1-SFXR
    probability of staying in FSR.
  – We can represent the possible paths with the
    following tree

                   Copyrights (c) 2011-2013 Pragmatic
                                                           8
                          Cohesion Consulting
Two-Step Transition probabilities
                                ISR      P(ISR,ISR,ISR) = (1-SFR).(1-SFR)
                   1-SFR


                  ISR
                    SFR
          1-SFR
                                 FSR      P(ISR,ISR,FSR) = (1-SFR).SFR



    ISR
                                ISR      P(ISR,FSR,ISR) = SFR.SFXR
          SFR       SFXR

                  FSR

                  1-SFXR
                                FSR      P(ISR,FSR,FSR) = SFR.(1-SFXR)


                        Copyrights (c) 2011-2013 Pragmatic
                                                                            9
                               Cohesion Consulting
Two-Step Transition probabilities
• So the probability that a Requirement that
  started in ISR is in ISR after two transitions is:
   P(ISR,ISR,ISR) + P(ISR,FSR,ISR) = (1-SFR).(1-SFR) +
    SFR.SFRX
• All other similar two-step transition
  probabilities can be calculated by M2



                    Copyrights (c) 2011-2013 Pragmatic
                                                          10
                           Cohesion Consulting
Two-Step Transition probabilities

M2 =
                       To ISR                                  To FSR


   From ISR (1-SFR).(1-SRF)+SFR.SFXR            (1-SFR).SFR+SRF.(1-SFXR)


  From FSR SFXR.(1-SFR)+(1-SFXR).SFXR           SFXR.SFR+(1-SFXR).(1-SFXR)




                          Copyrights (c) 2011-2013 Pragmatic
                                                                             11
                                 Cohesion Consulting
Steady State Analysis
• We are interested in knowing in the long run,
  the probability P1 that any given requirement
  will be in the ISR set. The probability that such
  requirement will be in the FSR set is P2=1-P1.
• Markov chains can help us solve this problem
  by calculating the Steady State probabilities of
  Matrix M:
  P1 = SFXR/(SFR+SFXR) [e1]
  P2 =1- SFXR/(SFR+SFXR) [e2]
                  Copyrights (c) 2011-2013 Pragmatic
                                                       12
                         Cohesion Consulting
Steady State Analysis- Example 1
• if:
   P1 = SFXR/(SFR+SFXR) [e1]
• Then P1 = 0.5 = 50% when SFR = SFXR.
• This implies that even if there is a low
  probability that a requirement that has been
  implemented fails testing (SFR); if an equally
  low fixing rate takes place, given sufficient
  time, a requirement gets closer and closer to
  having a 50% chance of being in the set that
  failed testing!
                  Copyrights (c) 2011-2013 Pragmatic
                                                       13
                         Cohesion Consulting
Steady State Analysis – Example 2
• Let’s look at another illustration:
  – P1 is the probability of having in the long run, a
    non-failed requirement. Let’s say that we want P1
    to be 90%. If we know that an implemented
    requirement has an SFR=20% probability of failing
    testing then what should SFXR (the rate at which
    failed requirements are fixed) be to assure
    P1=90%?



                   Copyrights (c) 2011-2013 Pragmatic
                                                        14
                          Cohesion Consulting
Steady State Analysis – Example 2
• From [e1] we can say that:
  [e1] -> 0.9 = SFXR/(0.2+SFXR)
  [e1] -> 0.9.(0.2+SFXR) = SFXR
  [e1] -> 0.18 + 0.9.SFXR = SFXR
  [e1] -> 0.18/(1-0.9) = SFXR
  [e1] -> SFXR = 1.8 > 1 which is impossible!




                  Copyrights (c) 2011-2013 Pragmatic
                                                       15
                         Cohesion Consulting
Steady State Analysis – Example 2
• If SFXR was equal to its maximum value of
  100% then the maximum value of P1 can only
  be 1/(1+0.2) = 83.3%=P1
• This result shows that there is a clear upper
  bound to the probability that in the long run a
  requirement will not fail testing given the
  value of SFR. SFR is the probability that a given
  requirement that has just been implemented
  fails testing.
                  Copyrights (c) 2011-2013 Pragmatic
                                                       16
                         Cohesion Consulting
Steady State Analysis – Example 2
• The only way to achieve P1 = 90% when SFXR
  = 100% is to decrease SFR from 20% so that:
  0.9 = 1/(SFR+1)
  SFR + 1 = 1/0.9
  SFR = 1/0.9 – 1
  SFR = 11.11%
• This lower value of SFR implies a better quality
  of software code that properly implements
  more requirements.
                  Copyrights (c) 2011-2013 Pragmatic
                                                       17
                         Cohesion Consulting
Transient Analysis
• It is possible to graph the values of P1 and P2
  over several transitions, this is called transient
  analysis.
• Transient analysis can show how fast the
  steady states values for P1 and P2 are
  reached.
• Transient analysis can also show instability in
  P1 and P2 values over several transitions due
  to higher values of SFR and SFRX (see
  examples 4 and 5 in subsequent slides).
                   Copyrights (c) 2011-2013 Pragmatic
                                                        18
                          Cohesion Consulting
Transient Analysis – Example 1
• SFR = 10% and SFXR = 50%




                Copyrights (c) 2011-2013 Pragmatic
                                                     19
                       Cohesion Consulting
Transient Analysis – Example 2
• SFR = 10% and SFXR = 10%




                Copyrights (c) 2011-2013 Pragmatic
                                                     20
                       Cohesion Consulting
Transient Analysis – Example 3
• SFR = 10% and SFXR = 1%




                Copyrights (c) 2011-2013 Pragmatic
                                                     21
                       Cohesion Consulting
Transient Analysis – Example 4
• SFR = 90% and SFXR = 90%




                Copyrights (c) 2011-2013 Pragmatic
                                                     22
                       Cohesion Consulting
Transient Analysis – Example 5
• SFR = 75% and SFXR = 100%




               Copyrights (c) 2011-2013 Pragmatic
                                                    23
                      Cohesion Consulting
For Comments and Questions contact didier@pragmaticohesion.com


                      Copyrights (c) 2011-2013 Pragmatic
                                                                 24
                             Cohesion Consulting

Contenu connexe

Similaire à The dynamic interaction of passed and failed requirements during software testing

TAROT2013 Testing School - Gilles Perrouin presentation
TAROT2013 Testing School -  Gilles Perrouin presentationTAROT2013 Testing School -  Gilles Perrouin presentation
TAROT2013 Testing School - Gilles Perrouin presentationHenry Muccini
 
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee ApproachModular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee ApproachRaffi Khatchadourian
 
Position Recognition of Node Duplication Attacks in Wireless Network
Position Recognition of Node Duplication Attacks in Wireless NetworkPosition Recognition of Node Duplication Attacks in Wireless Network
Position Recognition of Node Duplication Attacks in Wireless NetworkIRJET Journal
 
LORA in a Campus Reliability and Stability Testing.pptx
LORA in a Campus Reliability and Stability Testing.pptxLORA in a Campus Reliability and Stability Testing.pptx
LORA in a Campus Reliability and Stability Testing.pptxAliSalman110
 
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...Alejandro Salado
 
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...ijwmn
 
Impromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and otherImpromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and otherHarshit Srivastava
 

Similaire à The dynamic interaction of passed and failed requirements during software testing (9)

TAROT2013 Testing School - Gilles Perrouin presentation
TAROT2013 Testing School -  Gilles Perrouin presentationTAROT2013 Testing School -  Gilles Perrouin presentation
TAROT2013 Testing School - Gilles Perrouin presentation
 
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee ApproachModular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
 
Ibs gurgaon-8 th ncm
Ibs gurgaon-8 th ncmIbs gurgaon-8 th ncm
Ibs gurgaon-8 th ncm
 
1 untitled 1
1 untitled 11 untitled 1
1 untitled 1
 
Position Recognition of Node Duplication Attacks in Wireless Network
Position Recognition of Node Duplication Attacks in Wireless NetworkPosition Recognition of Node Duplication Attacks in Wireless Network
Position Recognition of Node Duplication Attacks in Wireless Network
 
LORA in a Campus Reliability and Stability Testing.pptx
LORA in a Campus Reliability and Stability Testing.pptxLORA in a Campus Reliability and Stability Testing.pptx
LORA in a Campus Reliability and Stability Testing.pptx
 
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
 
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
 
Impromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and otherImpromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and other
 

Plus de Pragmatic Cohesion Consulting, LLC

Applying the integrative propositional analysis (ipa) to the ebmm – triads
Applying the integrative propositional analysis (ipa) to the ebmm – triadsApplying the integrative propositional analysis (ipa) to the ebmm – triads
Applying the integrative propositional analysis (ipa) to the ebmm – triadsPragmatic Cohesion Consulting, LLC
 
Comparing four major organizational cultures and the challenges faced when tr...
Comparing four major organizational cultures and the challenges faced when tr...Comparing four major organizational cultures and the challenges faced when tr...
Comparing four major organizational cultures and the challenges faced when tr...Pragmatic Cohesion Consulting, LLC
 
Framework for assessing business analysts situational awareness
Framework for assessing business analysts situational awarenessFramework for assessing business analysts situational awareness
Framework for assessing business analysts situational awarenessPragmatic Cohesion Consulting, LLC
 
The dynamics of cohesive and inconsistent project requirements and how they i...
The dynamics of cohesive and inconsistent project requirements and how they i...The dynamics of cohesive and inconsistent project requirements and how they i...
The dynamics of cohesive and inconsistent project requirements and how they i...Pragmatic Cohesion Consulting, LLC
 
Creating queuing system simulations with enterprise architect sysml parametri...
Creating queuing system simulations with enterprise architect sysml parametri...Creating queuing system simulations with enterprise architect sysml parametri...
Creating queuing system simulations with enterprise architect sysml parametri...Pragmatic Cohesion Consulting, LLC
 
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...Pragmatic Cohesion Consulting, LLC
 
The non intuitive impact of software defects on development efforts time esti...
The non intuitive impact of software defects on development efforts time esti...The non intuitive impact of software defects on development efforts time esti...
The non intuitive impact of software defects on development efforts time esti...Pragmatic Cohesion Consulting, LLC
 
Balancing software project drivers a rational quantitative approach
Balancing software project drivers   a rational quantitative approachBalancing software project drivers   a rational quantitative approach
Balancing software project drivers a rational quantitative approachPragmatic Cohesion Consulting, LLC
 
Effective Listening - a cornerstone of effective business analysis
Effective Listening - a cornerstone of effective business analysisEffective Listening - a cornerstone of effective business analysis
Effective Listening - a cornerstone of effective business analysisPragmatic Cohesion Consulting, LLC
 
About the benefits and pitfalls of relying on analytical methods
About the benefits and pitfalls of relying on analytical methodsAbout the benefits and pitfalls of relying on analytical methods
About the benefits and pitfalls of relying on analytical methodsPragmatic Cohesion Consulting, LLC
 
Deductive, inductive, and abductive reasoning and their application in trans...
Deductive, inductive, and abductive reasoning and their application in  trans...Deductive, inductive, and abductive reasoning and their application in  trans...
Deductive, inductive, and abductive reasoning and their application in trans...Pragmatic Cohesion Consulting, LLC
 
34,000 delicious Food and Beverage combinations for your holidays!
34,000 delicious Food and Beverage combinations for your holidays!34,000 delicious Food and Beverage combinations for your holidays!
34,000 delicious Food and Beverage combinations for your holidays!Pragmatic Cohesion Consulting, LLC
 
Business analysis and business framework driven projects - Example of the Mic...
Business analysis and business framework driven projects - Example of the Mic...Business analysis and business framework driven projects - Example of the Mic...
Business analysis and business framework driven projects - Example of the Mic...Pragmatic Cohesion Consulting, LLC
 

Plus de Pragmatic Cohesion Consulting, LLC (20)

Applying the integrative propositional analysis (ipa) to the ebmm – triads
Applying the integrative propositional analysis (ipa) to the ebmm – triadsApplying the integrative propositional analysis (ipa) to the ebmm – triads
Applying the integrative propositional analysis (ipa) to the ebmm – triads
 
Viewers locations usa - 30000
Viewers locations usa - 30000Viewers locations usa - 30000
Viewers locations usa - 30000
 
Viewers locations outside USA - 30000
Viewers locations outside USA - 30000Viewers locations outside USA - 30000
Viewers locations outside USA - 30000
 
Comparing four major organizational cultures and the challenges faced when tr...
Comparing four major organizational cultures and the challenges faced when tr...Comparing four major organizational cultures and the challenges faced when tr...
Comparing four major organizational cultures and the challenges faced when tr...
 
Obstacles to effective knowledge elicitation
Obstacles to effective knowledge elicitationObstacles to effective knowledge elicitation
Obstacles to effective knowledge elicitation
 
Viewers locations in the USA
Viewers locations in the USAViewers locations in the USA
Viewers locations in the USA
 
Viewers locations outside the USA
Viewers locations outside the USAViewers locations outside the USA
Viewers locations outside the USA
 
Framework for assessing business analysts situational awareness
Framework for assessing business analysts situational awarenessFramework for assessing business analysts situational awareness
Framework for assessing business analysts situational awareness
 
The dynamics of cohesive and inconsistent project requirements and how they i...
The dynamics of cohesive and inconsistent project requirements and how they i...The dynamics of cohesive and inconsistent project requirements and how they i...
The dynamics of cohesive and inconsistent project requirements and how they i...
 
Creating queuing system simulations with enterprise architect sysml parametri...
Creating queuing system simulations with enterprise architect sysml parametri...Creating queuing system simulations with enterprise architect sysml parametri...
Creating queuing system simulations with enterprise architect sysml parametri...
 
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
 
The non intuitive impact of software defects on development efforts time esti...
The non intuitive impact of software defects on development efforts time esti...The non intuitive impact of software defects on development efforts time esti...
The non intuitive impact of software defects on development efforts time esti...
 
Balancing software project drivers a rational quantitative approach
Balancing software project drivers   a rational quantitative approachBalancing software project drivers   a rational quantitative approach
Balancing software project drivers a rational quantitative approach
 
M theory for business analysts - 11 dimensions of empowerment
M theory for business analysts - 11 dimensions of empowermentM theory for business analysts - 11 dimensions of empowerment
M theory for business analysts - 11 dimensions of empowerment
 
Effective Listening - a cornerstone of effective business analysis
Effective Listening - a cornerstone of effective business analysisEffective Listening - a cornerstone of effective business analysis
Effective Listening - a cornerstone of effective business analysis
 
About the benefits and pitfalls of relying on analytical methods
About the benefits and pitfalls of relying on analytical methodsAbout the benefits and pitfalls of relying on analytical methods
About the benefits and pitfalls of relying on analytical methods
 
Deductive, inductive, and abductive reasoning and their application in trans...
Deductive, inductive, and abductive reasoning and their application in  trans...Deductive, inductive, and abductive reasoning and their application in  trans...
Deductive, inductive, and abductive reasoning and their application in trans...
 
34,000 delicious Food and Beverage combinations for your holidays!
34,000 delicious Food and Beverage combinations for your holidays!34,000 delicious Food and Beverage combinations for your holidays!
34,000 delicious Food and Beverage combinations for your holidays!
 
Business analysis compass mapping to the iiba babok v2
Business analysis compass mapping to the iiba babok v2Business analysis compass mapping to the iiba babok v2
Business analysis compass mapping to the iiba babok v2
 
Business analysis and business framework driven projects - Example of the Mic...
Business analysis and business framework driven projects - Example of the Mic...Business analysis and business framework driven projects - Example of the Mic...
Business analysis and business framework driven projects - Example of the Mic...
 

Dernier

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Dernier (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

The dynamic interaction of passed and failed requirements during software testing

  • 1. The dynamic interaction of passed and failed requirements during software testing Copyrights (c) 2011-2013 Pragmatic 1 Cohesion Consulting
  • 2. Motivation • In my professional experience, I have repeatedly witnessed systemic issues during Software Verification that prompted me to develop the model presented in this paper. • It is my hope that the non-intuitive results that the model yields help software development team better understand certain dynamic behavior embedded in the software development process. Copyrights (c) 2011-2013 Pragmatic 2 Cohesion Consulting
  • 3. Requirements Statuses • We are interested in 2 simple sets of requirements. All requirements within each set share one of the following statuses: – The first one represents requirements that have been implemented i.e. requirements for which the development team has created actual software code. Let’s call this set of requirements ISR. – The second one represents requirements that have failed testing after they were implemented by the development team. Let’s call this second set of requirements FSR. Copyrights (c) 2011-2013 Pragmatic 3 Cohesion Consulting
  • 4. Requirement States Probabilities • Let’s call SFR the probability that a requirement that has been implemented fails testing. When this failure happens the requirement becomes part of the FSR set otherwise it remains in the ISR set. • Let’s call SFXR the probability that a failed requirement gets fixed. When the fix takes place, the requirement is no longer part of the FSR set but it moves into the ISR set. Copyrights (c) 2011-2013 Pragmatic 4 Cohesion Consulting
  • 5. Requirement States Probabilities • The following probability constraints exist: 0 <= SFR <= 1 0 <= SFXR <=1 • We can derive a probability transition matrix that captures the possible transitions of a requirement from one set to the other: From ISR to ISR, probability = 1-SFR From ISR to FSR, probability = SFR From FSR to ISR, probability = SFXR From FSR to FSR, probability = 1-SFXR Copyrights (c) 2011-2013 Pragmatic 5 Cohesion Consulting
  • 6. Transition probability matrix Let M be the transition probability matrix, M= To ISR To FSR From ISR 1-SFR SFR From FSR SFXR 1-SFXR Copyrights (c) 2011-2013 Pragmatic 6 Cohesion Consulting
  • 7. Two-Step Transition probabilities • The following question is particularly interesting: – given the transition probability matrix M and the fact that a requirement has been added to the ISR set, what is the probability that this same requirement will be in the ISR set two transitions in the future? Copyrights (c) 2011-2013 Pragmatic 7 Cohesion Consulting
  • 8. Two-Step Transition probabilities • The problem is not as obvious as it seems; here is is why: – When a Requirement enters set ISR it has a SFR probability of being moved to set FSR and a 1-SFR probability of staying in ISR. Once in FSR, it has a SFXR probability of moving into ISR and a 1-SFXR probability of staying in FSR. – We can represent the possible paths with the following tree Copyrights (c) 2011-2013 Pragmatic 8 Cohesion Consulting
  • 9. Two-Step Transition probabilities ISR P(ISR,ISR,ISR) = (1-SFR).(1-SFR) 1-SFR ISR SFR 1-SFR FSR P(ISR,ISR,FSR) = (1-SFR).SFR ISR ISR P(ISR,FSR,ISR) = SFR.SFXR SFR SFXR FSR 1-SFXR FSR P(ISR,FSR,FSR) = SFR.(1-SFXR) Copyrights (c) 2011-2013 Pragmatic 9 Cohesion Consulting
  • 10. Two-Step Transition probabilities • So the probability that a Requirement that started in ISR is in ISR after two transitions is: P(ISR,ISR,ISR) + P(ISR,FSR,ISR) = (1-SFR).(1-SFR) + SFR.SFRX • All other similar two-step transition probabilities can be calculated by M2 Copyrights (c) 2011-2013 Pragmatic 10 Cohesion Consulting
  • 11. Two-Step Transition probabilities M2 = To ISR To FSR From ISR (1-SFR).(1-SRF)+SFR.SFXR (1-SFR).SFR+SRF.(1-SFXR) From FSR SFXR.(1-SFR)+(1-SFXR).SFXR SFXR.SFR+(1-SFXR).(1-SFXR) Copyrights (c) 2011-2013 Pragmatic 11 Cohesion Consulting
  • 12. Steady State Analysis • We are interested in knowing in the long run, the probability P1 that any given requirement will be in the ISR set. The probability that such requirement will be in the FSR set is P2=1-P1. • Markov chains can help us solve this problem by calculating the Steady State probabilities of Matrix M: P1 = SFXR/(SFR+SFXR) [e1] P2 =1- SFXR/(SFR+SFXR) [e2] Copyrights (c) 2011-2013 Pragmatic 12 Cohesion Consulting
  • 13. Steady State Analysis- Example 1 • if: P1 = SFXR/(SFR+SFXR) [e1] • Then P1 = 0.5 = 50% when SFR = SFXR. • This implies that even if there is a low probability that a requirement that has been implemented fails testing (SFR); if an equally low fixing rate takes place, given sufficient time, a requirement gets closer and closer to having a 50% chance of being in the set that failed testing! Copyrights (c) 2011-2013 Pragmatic 13 Cohesion Consulting
  • 14. Steady State Analysis – Example 2 • Let’s look at another illustration: – P1 is the probability of having in the long run, a non-failed requirement. Let’s say that we want P1 to be 90%. If we know that an implemented requirement has an SFR=20% probability of failing testing then what should SFXR (the rate at which failed requirements are fixed) be to assure P1=90%? Copyrights (c) 2011-2013 Pragmatic 14 Cohesion Consulting
  • 15. Steady State Analysis – Example 2 • From [e1] we can say that: [e1] -> 0.9 = SFXR/(0.2+SFXR) [e1] -> 0.9.(0.2+SFXR) = SFXR [e1] -> 0.18 + 0.9.SFXR = SFXR [e1] -> 0.18/(1-0.9) = SFXR [e1] -> SFXR = 1.8 > 1 which is impossible! Copyrights (c) 2011-2013 Pragmatic 15 Cohesion Consulting
  • 16. Steady State Analysis – Example 2 • If SFXR was equal to its maximum value of 100% then the maximum value of P1 can only be 1/(1+0.2) = 83.3%=P1 • This result shows that there is a clear upper bound to the probability that in the long run a requirement will not fail testing given the value of SFR. SFR is the probability that a given requirement that has just been implemented fails testing. Copyrights (c) 2011-2013 Pragmatic 16 Cohesion Consulting
  • 17. Steady State Analysis – Example 2 • The only way to achieve P1 = 90% when SFXR = 100% is to decrease SFR from 20% so that: 0.9 = 1/(SFR+1) SFR + 1 = 1/0.9 SFR = 1/0.9 – 1 SFR = 11.11% • This lower value of SFR implies a better quality of software code that properly implements more requirements. Copyrights (c) 2011-2013 Pragmatic 17 Cohesion Consulting
  • 18. Transient Analysis • It is possible to graph the values of P1 and P2 over several transitions, this is called transient analysis. • Transient analysis can show how fast the steady states values for P1 and P2 are reached. • Transient analysis can also show instability in P1 and P2 values over several transitions due to higher values of SFR and SFRX (see examples 4 and 5 in subsequent slides). Copyrights (c) 2011-2013 Pragmatic 18 Cohesion Consulting
  • 19. Transient Analysis – Example 1 • SFR = 10% and SFXR = 50% Copyrights (c) 2011-2013 Pragmatic 19 Cohesion Consulting
  • 20. Transient Analysis – Example 2 • SFR = 10% and SFXR = 10% Copyrights (c) 2011-2013 Pragmatic 20 Cohesion Consulting
  • 21. Transient Analysis – Example 3 • SFR = 10% and SFXR = 1% Copyrights (c) 2011-2013 Pragmatic 21 Cohesion Consulting
  • 22. Transient Analysis – Example 4 • SFR = 90% and SFXR = 90% Copyrights (c) 2011-2013 Pragmatic 22 Cohesion Consulting
  • 23. Transient Analysis – Example 5 • SFR = 75% and SFXR = 100% Copyrights (c) 2011-2013 Pragmatic 23 Cohesion Consulting
  • 24. For Comments and Questions contact didier@pragmaticohesion.com Copyrights (c) 2011-2013 Pragmatic 24 Cohesion Consulting