SlideShare a Scribd company logo
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 Fundamentals
Kiran Kumar
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
ASIT 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 testing
Yisal Khan
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
Mani Kanth
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
AWADHESH PRATAP SINGH UNIVERSITY, REWA (M.P.)
 
Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioning
Sneha Singh
 
Validation and verification
Validation and verificationValidation and verification
Validation and verification
De La Salle University-Manila
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
MariamKhan120
 
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 Techniques
Kiran 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 M
Forziatech
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
Nivetha Padmanaban
 
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
putiadetiara
 
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 Testing
Hirra 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

White-box testing.pptx
White-box testing.pptxWhite-box testing.pptx
White-box testing.pptx
halaalz3by
 
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
guest8861ff
 
Testing ppt
Testing pptTesting ppt
Testing ppt
kiran theja
 
Testing Interview Questions.pdf
Testing Interview Questions.pdfTesting Interview Questions.pdf
Testing Interview Questions.pdf
PradeepaKannan6
 
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
Engineering Software Lab
 
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 Engineering Software Lab
 
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
Khuong Nguyen
 
Testing
TestingTesting
Testing
Mohammed
 
Testing type
Testing typeTesting type
Testing type
transformtoit
 
Types
TypesTypes

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
 
Testing type
Testing typeTesting type
Testing type
 
Types
TypesTypes
Types
 
prova4
prova4prova4
prova4
 
provalast
provalastprovalast
provalast
 
test3
test3test3
test3
 
test
testtest
test
 
prova2
prova2prova2
prova2
 
testsfw2
testsfw2testsfw2
testsfw2
 

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 Talks
Scio 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 Software
Scio Consulting
 
El buen desarrollador - Julio Orozco
El buen desarrollador - Julio OrozcoEl buen desarrollador - Julio Orozco
El buen desarrollador - Julio Orozco
Scio 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
 
Fun with DSL
Fun with DSLFun with DSL
Fun with DSL
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 virtual
Scio 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íbridas
Scio Consulting
 
Jugando con LinQ
Jugando con LinQJugando con LinQ
Jugando con LinQ
Scio Consulting
 
JQuery Deferred
JQuery DeferredJQuery Deferred
JQuery Deferred
Scio 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 LinQ
Scio 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 parte
Scio 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

Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Sebastiano Panichella
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Matjaž Lipuš
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
Vladimir Samoylov
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
OECD Directorate for Financial and Enterprise Affairs
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Orkestra
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Sebastiano Panichella
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
Howard Spence
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
faizulhassanfaiz1670
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
OWASP Beja
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
eCommerce Institute
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
Access Innovations, Inc.
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
khadija278284
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
Sebastiano Panichella
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
IP ServerOne
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
Faculty of Medicine And Health Sciences
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Access Innovations, Inc.
 

Recently uploaded (16)

Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
 

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