SlideShare a Scribd company logo
1 of 12
Coverage-Based testing 
CONSIDERING THE OBJECTS OF TESTING TO COVERING FUNCTIONAL OR 
EXECUTION UNITS
Testing techniques 
Black Box 
 (Specification-based techniques) 
Examines the functionality of an 
application without peering into its 
internal structures or workings. 
 This method of test can be applied to 
virtually every level of software testing: 
unit, integration, system and acceptance. 
White Box 
 (Structure-based techniques) Tests 
internal structures or workings of an 
application. An internal perspective of 
the system, as well as programming 
skills, are used to design test cases. 
 White-box testing can be applied at the 
unit, integration and system levels of the 
software testing process.
Perspective 
 It is often used in early sub-stages of software testing. 
 Bugs are more closely related to objects under test, leading to effectual 
software bug removal. 
 Uses coverage purposes as the stop criteria.
Pros & Cons 
Advantages 
 Conducted by either professional testers 
or by developers themselves 
 Testing models are often created 
without active client or user input 
 It helps in determining a quantitative 
measure of code coverage, which 
indirectly measure the quality of the 
application or product. 
Disadvantages 
 The efficiency reduces with large objects 
(big projects). 
 If a specified function has not been 
implemented or a function was omitted 
from the specification, then structure-based 
techniques cannot say anything 
about them it only looks at a structure 
which is already there. 
 100% coverage does not mean 100% 
tested.
Coverage Criteria 
Types 
NOT ALL OF THEM, ONLY THE 
MOST COMMON
Statement Coverage 
 The test case is executed in such a way 
that every statement of the code is 
executed at least once.
Branch coverage 
 It requires enough test cases such that 
each condition in a decision takes on all 
possible outcomes at least once, and 
each point of entry to a program or 
subroutine is invoked at least once.
Condition coverage 
 It ensures that every possible condition 
is executed at least once.
Path coverage 
 Path Coverage ensures covering of all 
the paths from start to end.
Practice 
 public int returnInput (int input, boolean 
condition1, boolean condition2, boolean 
condition3) { 
int x = input; 
int y = 0; 
if (condition1) 
x++; 
if (condition2) 
x--; 
if (condition3) 
y=x; 
return y; 
} 
 Please estimate the number of test cases 
required for 100% code covered for: 
 Statement Coverage 
 Branch Coverage 
 Path Coverage
Memorize this… 
100% Path coverage will imply 100% 
Statement coverage 
100% Branch coverage will imply 100% 
Statement coverage 
100% Path coverage will imply 100% Branch 
coverage
References 
 http://www.softwaretestingtimes.com/2010/04/white-box-testing-simplified. 
html 
 http://en.wikipedia.org/ 
 http://sce.uhcl.edu/helm/VAV_SENG_WEB/My-Files/Unit6/Unit6P2.htm

More Related Content

What's hot

Testing Fundamentals
Testing FundamentalsTesting Fundamentals
Testing FundamentalsKiran Kumar
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testingASIT Education
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testingYisal Khan
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testingMani Kanth
 
Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningSneha Singh
 
Black box testing or behavioral testing
Black box testing or behavioral testingBlack box testing or behavioral testing
Black box testing or behavioral testingSlideshare
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing TechniquesKiran Kumar
 
Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Rajan Kandel
 
Black Box Testing Techniques by Sampath M
Black Box Testing Techniques by Sampath MBlack Box Testing Techniques by Sampath M
Black Box Testing Techniques by Sampath MForziatech
 
Black box testing methods for software components
Black box testing methods for software componentsBlack box testing methods for software components
Black box testing methods for software componentsputiadetiara
 
White box testing
White box testing White box testing
White box testing Mani Kanth
 
Structural testing
Structural testingStructural testing
Structural testingSlideshare
 
Control Flow Testing
Control Flow TestingControl Flow Testing
Control Flow TestingHirra Sultan
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)1Arun_Pandey
 

What's hot (20)

Black box software testing
Black box software testingBlack box software testing
Black box software testing
 
Testing Fundamentals
Testing FundamentalsTesting Fundamentals
Testing Fundamentals
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testing
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
 
Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioning
 
Validation and verification
Validation and verificationValidation and verification
Validation and verification
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Black box testing or behavioral testing
Black box testing or behavioral testingBlack box testing or behavioral testing
Black box testing or behavioral testing
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Calibration and validation model (Simulation )
Calibration and validation model (Simulation )
 
Black Box Testing Techniques by Sampath M
Black Box Testing Techniques by Sampath MBlack Box Testing Techniques by Sampath M
Black Box Testing Techniques by Sampath M
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Black box testing methods for software components
Black box testing methods for software componentsBlack box testing methods for software components
Black box testing methods for software components
 
White box testing
White box testing White box testing
White box testing
 
Structural testing
Structural testingStructural testing
Structural testing
 
Control Flow Testing
Control Flow TestingControl Flow Testing
Control Flow Testing
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)
 
Black-Box
Black-BoxBlack-Box
Black-Box
 

Similar to ScioTalks | Coverage Based Testing

Similar to ScioTalks | Coverage Based Testing (20)

White-box testing.pptx
White-box testing.pptxWhite-box testing.pptx
White-box testing.pptx
 
Automating The Process For Building Reliable Software
Automating The Process For Building Reliable SoftwareAutomating The Process For Building Reliable Software
Automating The Process For Building Reliable Software
 
Testing ppt
Testing pptTesting ppt
Testing ppt
 
Testing Interview Questions.pdf
Testing Interview Questions.pdfTesting Interview Questions.pdf
Testing Interview Questions.pdf
 
software testing
software testingsoftware testing
software testing
 
Testing
TestingTesting
Testing
 
Testing
TestingTesting
Testing
 
Code coverage in theory and in practice form the do178 b perspective
Code coverage in theory and in practice form the do178 b perspectiveCode coverage in theory and in practice form the do178 b perspective
Code coverage in theory and in practice form the do178 b perspective
 
Code Coverage in Theory and in practice form the DO178B perspective
Code Coverage in Theory and in practice form the DO178B perspective   Code Coverage in Theory and in practice form the DO178B perspective
Code Coverage in Theory and in practice form the DO178B perspective
 
Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniques
 
Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
 
Testing
TestingTesting
Testing
 
Types
TypesTypes
Types
 
Testing type
Testing typeTesting type
Testing type
 
prova4
prova4prova4
prova4
 
provalast
provalastprovalast
provalast
 
test3
test3test3
test3
 
test2
test2test2
test2
 
provoora
provooraprovoora
provoora
 
remoto2
remoto2remoto2
remoto2
 

More from Scio Consulting

When is a custom app the right choice?
When is a custom app the right choice? When is a custom app the right choice?
When is a custom app the right choice? Scio Consulting
 
Conociendo ReactJs . Scio Talks
Conociendo ReactJs . Scio TalksConociendo ReactJs . Scio Talks
Conociendo ReactJs . Scio TalksScio Consulting
 
La Labor del Analista de Calidad en el Desarrollo de Software
La Labor del Analista de Calidad en el Desarrollo de SoftwareLa Labor del Analista de Calidad en el Desarrollo de Software
La Labor del Analista de Calidad en el Desarrollo de SoftwareScio Consulting
 
El buen desarrollador - Julio Orozco
El buen desarrollador - Julio OrozcoEl buen desarrollador - Julio Orozco
El buen desarrollador - Julio OrozcoScio Consulting
 
Scio Talks - Sistemas Distribuidos con C#
Scio Talks - Sistemas Distribuidos con C# Scio Talks - Sistemas Distribuidos con C#
Scio Talks - Sistemas Distribuidos con C# Scio Consulting
 
Webinar User Experience Fundamentals
Webinar User Experience Fundamentals Webinar User Experience Fundamentals
Webinar User Experience Fundamentals Scio Consulting
 
Autocomplete con AngularJs
Autocomplete con AngularJs Autocomplete con AngularJs
Autocomplete con AngularJs Scio Consulting
 
El curioso caso del Geek y la máquina virtual
El curioso caso del Geek y la máquina virtualEl curioso caso del Geek y la máquina virtual
El curioso caso del Geek y la máquina virtualScio Consulting
 
JavaScript Async | Juan Miguel Alcalá
JavaScript Async | Juan Miguel AlcaláJavaScript Async | Juan Miguel Alcalá
JavaScript Async | Juan Miguel AlcaláScio Consulting
 
Aplicaciones Móviles Híbridas
Aplicaciones Móviles HíbridasAplicaciones Móviles Híbridas
Aplicaciones Móviles HíbridasScio Consulting
 
Behavior Driven Development (BDD)
Behavior Driven Development (BDD) Behavior Driven Development (BDD)
Behavior Driven Development (BDD) Scio Consulting
 
Scio Talks - Jugando con LinQ
Scio Talks - Jugando con LinQScio Talks - Jugando con LinQ
Scio Talks - Jugando con LinQScio Consulting
 
Scio Talks Gobierna el Frontend parte2
Scio Talks Gobierna el Frontend parte2Scio Talks Gobierna el Frontend parte2
Scio Talks Gobierna el Frontend parte2Scio Consulting
 
¿Porqué la User Experience / User Interface es Importante?
¿Porqué la User Experience / User Interface es Importante?¿Porqué la User Experience / User Interface es Importante?
¿Porqué la User Experience / User Interface es Importante?Scio Consulting
 
Scio Talks - Gobierna el Frontend 1er parte
Scio Talks - Gobierna el Frontend 1er parteScio Talks - Gobierna el Frontend 1er parte
Scio Talks - Gobierna el Frontend 1er parteScio Consulting
 

More from Scio Consulting (19)

When is a custom app the right choice?
When is a custom app the right choice? When is a custom app the right choice?
When is a custom app the right choice?
 
Conociendo ReactJs . Scio Talks
Conociendo ReactJs . Scio TalksConociendo ReactJs . Scio Talks
Conociendo ReactJs . Scio Talks
 
La Labor del Analista de Calidad en el Desarrollo de Software
La Labor del Analista de Calidad en el Desarrollo de SoftwareLa Labor del Analista de Calidad en el Desarrollo de Software
La Labor del Analista de Calidad en el Desarrollo de Software
 
El buen desarrollador - Julio Orozco
El buen desarrollador - Julio OrozcoEl buen desarrollador - Julio Orozco
El buen desarrollador - Julio Orozco
 
Scio Talks - Sistemas Distribuidos con C#
Scio Talks - Sistemas Distribuidos con C# Scio Talks - Sistemas Distribuidos con C#
Scio Talks - Sistemas Distribuidos con C#
 
Fun with DSL
Fun with DSLFun with DSL
Fun with DSL
 
Webinar User Experience Fundamentals
Webinar User Experience Fundamentals Webinar User Experience Fundamentals
Webinar User Experience Fundamentals
 
Autocomplete con AngularJs
Autocomplete con AngularJs Autocomplete con AngularJs
Autocomplete con AngularJs
 
Ng autocomplete
Ng autocompleteNg autocomplete
Ng autocomplete
 
El curioso caso del Geek y la máquina virtual
El curioso caso del Geek y la máquina virtualEl curioso caso del Geek y la máquina virtual
El curioso caso del Geek y la máquina virtual
 
JavaScript Async | Juan Miguel Alcalá
JavaScript Async | Juan Miguel AlcaláJavaScript Async | Juan Miguel Alcalá
JavaScript Async | Juan Miguel Alcalá
 
Aplicaciones Móviles Híbridas
Aplicaciones Móviles HíbridasAplicaciones Móviles Híbridas
Aplicaciones Móviles Híbridas
 
Jugando con LinQ
Jugando con LinQJugando con LinQ
Jugando con LinQ
 
JQuery Deferred
JQuery DeferredJQuery Deferred
JQuery Deferred
 
Behavior Driven Development (BDD)
Behavior Driven Development (BDD) Behavior Driven Development (BDD)
Behavior Driven Development (BDD)
 
Scio Talks - Jugando con LinQ
Scio Talks - Jugando con LinQScio Talks - Jugando con LinQ
Scio Talks - Jugando con LinQ
 
Scio Talks Gobierna el Frontend parte2
Scio Talks Gobierna el Frontend parte2Scio Talks Gobierna el Frontend parte2
Scio Talks Gobierna el Frontend parte2
 
¿Porqué la User Experience / User Interface es Importante?
¿Porqué la User Experience / User Interface es Importante?¿Porqué la User Experience / User Interface es Importante?
¿Porqué la User Experience / User Interface es Importante?
 
Scio Talks - Gobierna el Frontend 1er parte
Scio Talks - Gobierna el Frontend 1er parteScio Talks - Gobierna el Frontend 1er parte
Scio Talks - Gobierna el Frontend 1er parte
 

Recently uploaded

Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝soniya singh
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...NETWAYS
 
Work Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxWork Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxmavinoikein
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Pooja Nehwal
 
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024eCommerce Institute
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Krijn Poppe
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...NETWAYS
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024eCommerce Institute
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AITatiana Gurgel
 
Motivation and Theory Maslow and Murray pdf
Motivation and Theory Maslow and Murray pdfMotivation and Theory Maslow and Murray pdf
Motivation and Theory Maslow and Murray pdfakankshagupta7348026
 
The 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringThe 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringSebastiano Panichella
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Salam Al-Karadaghi
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfhenrik385807
 
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptPhilippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptssuser319dad
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@vikas rana
 
LANDMARKS AND MONUMENTS IN NIGERIA.pptx
LANDMARKS  AND MONUMENTS IN NIGERIA.pptxLANDMARKS  AND MONUMENTS IN NIGERIA.pptx
LANDMARKS AND MONUMENTS IN NIGERIA.pptxBasil Achie
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...NETWAYS
 
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSimulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSebastiano Panichella
 
SBFT Tool Competition 2024 - CPS-UAV Test Case Generation Track
SBFT Tool Competition 2024 - CPS-UAV Test Case Generation TrackSBFT Tool Competition 2024 - CPS-UAV Test Case Generation Track
SBFT Tool Competition 2024 - CPS-UAV Test Case Generation TrackSebastiano Panichella
 

Recently uploaded (20)

Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
 
Work Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxWork Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptx
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
 
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AI
 
Motivation and Theory Maslow and Murray pdf
Motivation and Theory Maslow and Murray pdfMotivation and Theory Maslow and Murray pdf
Motivation and Theory Maslow and Murray pdf
 
The 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringThe 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software Engineering
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
 
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptPhilippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.ppt
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@
 
LANDMARKS AND MONUMENTS IN NIGERIA.pptx
LANDMARKS  AND MONUMENTS IN NIGERIA.pptxLANDMARKS  AND MONUMENTS IN NIGERIA.pptx
LANDMARKS AND MONUMENTS IN NIGERIA.pptx
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
 
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSimulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
 
SBFT Tool Competition 2024 - CPS-UAV Test Case Generation Track
SBFT Tool Competition 2024 - CPS-UAV Test Case Generation TrackSBFT Tool Competition 2024 - CPS-UAV Test Case Generation Track
SBFT Tool Competition 2024 - CPS-UAV Test Case Generation Track
 

ScioTalks | Coverage Based Testing

  • 1. Coverage-Based testing CONSIDERING THE OBJECTS OF TESTING TO COVERING FUNCTIONAL OR EXECUTION UNITS
  • 2. Testing techniques Black Box  (Specification-based techniques) Examines the functionality of an application without peering into its internal structures or workings.  This method of test can be applied to virtually every level of software testing: unit, integration, system and acceptance. White Box  (Structure-based techniques) Tests internal structures or workings of an application. An internal perspective of the system, as well as programming skills, are used to design test cases.  White-box testing can be applied at the unit, integration and system levels of the software testing process.
  • 3. Perspective  It is often used in early sub-stages of software testing.  Bugs are more closely related to objects under test, leading to effectual software bug removal.  Uses coverage purposes as the stop criteria.
  • 4. Pros & Cons Advantages  Conducted by either professional testers or by developers themselves  Testing models are often created without active client or user input  It helps in determining a quantitative measure of code coverage, which indirectly measure the quality of the application or product. Disadvantages  The efficiency reduces with large objects (big projects).  If a specified function has not been implemented or a function was omitted from the specification, then structure-based techniques cannot say anything about them it only looks at a structure which is already there.  100% coverage does not mean 100% tested.
  • 5. Coverage Criteria Types NOT ALL OF THEM, ONLY THE MOST COMMON
  • 6. Statement Coverage  The test case is executed in such a way that every statement of the code is executed at least once.
  • 7. Branch coverage  It requires enough test cases such that each condition in a decision takes on all possible outcomes at least once, and each point of entry to a program or subroutine is invoked at least once.
  • 8. Condition coverage  It ensures that every possible condition is executed at least once.
  • 9. Path coverage  Path Coverage ensures covering of all the paths from start to end.
  • 10. Practice  public int returnInput (int input, boolean condition1, boolean condition2, boolean condition3) { int x = input; int y = 0; if (condition1) x++; if (condition2) x--; if (condition3) y=x; return y; }  Please estimate the number of test cases required for 100% code covered for:  Statement Coverage  Branch Coverage  Path Coverage
  • 11. Memorize this… 100% Path coverage will imply 100% Statement coverage 100% Branch coverage will imply 100% Statement coverage 100% Path coverage will imply 100% Branch coverage
  • 12. References  http://www.softwaretestingtimes.com/2010/04/white-box-testing-simplified. html  http://en.wikipedia.org/  http://sce.uhcl.edu/helm/VAV_SENG_WEB/My-Files/Unit6/Unit6P2.htm