SlideShare ist ein Scribd-Unternehmen logo
1 von 14
White-Box testing
Techniques
Contents:
● Introduction
a) History
b) Definition, Goal and its use
● When to use? and Why?
● Types of techniques
● Advantages and Disadvantages
● Conclusion
Introduction:
● White-box/Structure-based measures and its related
design techniques are described in BS7925-2
standard.
● A software testing technique whereby explicit
knowledge of the internal workings of the item
being tested are used to select the test data.
● White Box testing is based on specific knowledge
of the source code to define the test cases and to
examine outputs.
Definition:
● Testing based on an analysis of the internal
structure of the component or system.
● White Box testing is also known as Clear Box
testing, Glass Box testing, Transparent Box testing,
and Structure-Based testing.
● It can be applied at all levels of SDLC.
● Most of the defects are found in Unit, Component
& Integration levels is through White-box.
Diagram of White-Box techniques:
Dynamic Testing
Black-boxWhite-Box
Statement Coverage
Decision Coverage
Condition Coverage
Multiple Condition
Decision Coverage
WHITE BOX TECHNIQUES:
● Statement coverage testing
● Decision coverage testing
● Condition coverage testing
● Multiple condition testing
STATEMENT COVERAGE:
The percentage of executable statements that have
been exercised by a test suite.
Statement
Coverage = Number of statements exercised
Total number of statements
* 100%
STATEMENT COVERAGE EXAMPLE
READ (a)
IF a > 6 THEN
B = a
ENDIF
PRINT b
● Here in this example Statement coverage is
100%
Start
Read a
If
a>6
B = a
Print B
End if
Yes
N0
DECISION COVERAGE:
The percentage of decision outcomes that
have been exercised by a test suite.
100% decision coverage implies 100%
statement coverage.
●
Decision coverage =
Number of decision outcomes exercised
Total number of decision outcomes
* 100%
DECISION COVERAGE
EXAMPLE
READ A
READ B
C = A – 2*B
IF C < 0 THEN
PRINT “C negative”
END IF
Read A, B
C < 0
Print
Y
N
End If
Start
C= A-2*B
CONDITION COVERAGE:
●
In this white Box testing technique try to cover
100% condition coverage of the code, it means
while testing the every possible conditions in the
code is executed at least once.
MULTIPLE CONDITION COVERAGE:
●
In this type of testing we use to cover each every
point of the system to be execute once.
●
In the actual development process developers are
make use of the combination of techniques those
are suitable for there software application.
Advantages Disadvantages
● It helps in optimizing
the code.
● Extra lines of code
can be removed.
● Due to the tester's
knowledge about the
code, maximum
coverage is attained
during test scenario
writing.
● Costs expensive
method of testing.
● It is difficult to
maintain white box
testing as the use of
specialized tools like
code analyzers and
debugging tools are
required.
Differences:
Black Box Testing White Box Testing
1. Internal Workings of an
application are not required.
1. Knowledge of the Internal
workings is must.
2. Also known as closed
box/data driven testing.
2. Also known as clear box
/structural testing.
3. End users,testers and
developers.
3. Normally done by testers
and developers
4. This can only be done by
trial and error method.
4. Data domains and Internal
boundaries can be better
tested
By,
BugAcers

Weitere ähnliche Inhalte

Was ist angesagt?

UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
suhasreddy1
 

Was ist angesagt? (20)

White Box Testing
White Box Testing White Box Testing
White Box Testing
 
Introduction to White box testing
Introduction to White box testingIntroduction to White box testing
Introduction to White box testing
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testing
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 
White box black box & gray box testing
White box black box & gray box testingWhite box black box & gray box testing
White box black box & gray box testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
White box testing
White box testingWhite box testing
White box testing
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Equivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysisEquivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysis
 
UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
Control Flow Testing
Control Flow TestingControl Flow Testing
Control Flow Testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 

Ähnlich wie White box ppt

blackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.pptblackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.ppt
suchita74
 
Istqb question-paper-dump-4
Istqb question-paper-dump-4Istqb question-paper-dump-4
Istqb question-paper-dump-4
TestingGeeks
 
Istqb exam sample_paper_3
Istqb exam sample_paper_3Istqb exam sample_paper_3
Istqb exam sample_paper_3
TestingGeeks
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
Nikita Knysh
 

Ähnlich wie White box ppt (20)

UNIT testing
UNIT testingUNIT testing
UNIT testing
 
Unit 2 Unit level testing.ppt
Unit 2 Unit level testing.pptUnit 2 Unit level testing.ppt
Unit 2 Unit level testing.ppt
 
WHITE BOX TESTING ashu.pptx
WHITE BOX TESTING ashu.pptxWHITE BOX TESTING ashu.pptx
WHITE BOX TESTING ashu.pptx
 
Testing chapter updated (1)
Testing chapter updated (1)Testing chapter updated (1)
Testing chapter updated (1)
 
Block 1 ms-034 unit-1
Block 1 ms-034 unit-1Block 1 ms-034 unit-1
Block 1 ms-034 unit-1
 
BLACK BOX & WHITE BOX TESTING.pptx
BLACK BOX & WHITE BOX TESTING.pptxBLACK BOX & WHITE BOX TESTING.pptx
BLACK BOX & WHITE BOX TESTING.pptx
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
blackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.pptblackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.ppt
 
All Software Testing in Software Engineering
All Software Testing in Software EngineeringAll Software Testing in Software Engineering
All Software Testing in Software Engineering
 
Istqb question-paper-dump-4
Istqb question-paper-dump-4Istqb question-paper-dump-4
Istqb question-paper-dump-4
 
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
 
Comp
CompComp
Comp
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Istqb exam sample_paper_3
Istqb exam sample_paper_3Istqb exam sample_paper_3
Istqb exam sample_paper_3
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
 
Testing Slides 2(Dynamic Testing Intro + Black Box Testing).pdf
Testing Slides 2(Dynamic Testing Intro + Black Box Testing).pdfTesting Slides 2(Dynamic Testing Intro + Black Box Testing).pdf
Testing Slides 2(Dynamic Testing Intro + Black Box Testing).pdf
 
[SRD UGM] Sharing Session - Software Testing
[SRD UGM] Sharing Session - Software Testing[SRD UGM] Sharing Session - Software Testing
[SRD UGM] Sharing Session - Software Testing
 
White box testing
White box testing White box testing
White box testing
 
ScioTalks | Coverage Based Testing
ScioTalks | Coverage Based TestingScioTalks | Coverage Based Testing
ScioTalks | Coverage Based Testing
 
ISTQB Technical Test Analyst 2012 Training - Structure-Based Testing
ISTQB Technical Test Analyst 2012 Training - Structure-Based TestingISTQB Technical Test Analyst 2012 Training - Structure-Based Testing
ISTQB Technical Test Analyst 2012 Training - Structure-Based Testing
 

Kürzlich hochgeladen

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

White box ppt

  • 1. White-Box testing Techniques Contents: ● Introduction a) History b) Definition, Goal and its use ● When to use? and Why? ● Types of techniques ● Advantages and Disadvantages ● Conclusion
  • 2. Introduction: ● White-box/Structure-based measures and its related design techniques are described in BS7925-2 standard. ● A software testing technique whereby explicit knowledge of the internal workings of the item being tested are used to select the test data. ● White Box testing is based on specific knowledge of the source code to define the test cases and to examine outputs.
  • 3. Definition: ● Testing based on an analysis of the internal structure of the component or system. ● White Box testing is also known as Clear Box testing, Glass Box testing, Transparent Box testing, and Structure-Based testing. ● It can be applied at all levels of SDLC. ● Most of the defects are found in Unit, Component & Integration levels is through White-box.
  • 4. Diagram of White-Box techniques: Dynamic Testing Black-boxWhite-Box Statement Coverage Decision Coverage Condition Coverage Multiple Condition Decision Coverage
  • 5. WHITE BOX TECHNIQUES: ● Statement coverage testing ● Decision coverage testing ● Condition coverage testing ● Multiple condition testing
  • 6. STATEMENT COVERAGE: The percentage of executable statements that have been exercised by a test suite. Statement Coverage = Number of statements exercised Total number of statements * 100%
  • 7. STATEMENT COVERAGE EXAMPLE READ (a) IF a > 6 THEN B = a ENDIF PRINT b ● Here in this example Statement coverage is 100% Start Read a If a>6 B = a Print B End if Yes N0
  • 8. DECISION COVERAGE: The percentage of decision outcomes that have been exercised by a test suite. 100% decision coverage implies 100% statement coverage. ● Decision coverage = Number of decision outcomes exercised Total number of decision outcomes * 100%
  • 9. DECISION COVERAGE EXAMPLE READ A READ B C = A – 2*B IF C < 0 THEN PRINT “C negative” END IF Read A, B C < 0 Print Y N End If Start C= A-2*B
  • 10. CONDITION COVERAGE: ● In this white Box testing technique try to cover 100% condition coverage of the code, it means while testing the every possible conditions in the code is executed at least once.
  • 11. MULTIPLE CONDITION COVERAGE: ● In this type of testing we use to cover each every point of the system to be execute once. ● In the actual development process developers are make use of the combination of techniques those are suitable for there software application.
  • 12. Advantages Disadvantages ● It helps in optimizing the code. ● Extra lines of code can be removed. ● Due to the tester's knowledge about the code, maximum coverage is attained during test scenario writing. ● Costs expensive method of testing. ● It is difficult to maintain white box testing as the use of specialized tools like code analyzers and debugging tools are required.
  • 13. Differences: Black Box Testing White Box Testing 1. Internal Workings of an application are not required. 1. Knowledge of the Internal workings is must. 2. Also known as closed box/data driven testing. 2. Also known as clear box /structural testing. 3. End users,testers and developers. 3. Normally done by testers and developers 4. This can only be done by trial and error method. 4. Data domains and Internal boundaries can be better tested