SlideShare a Scribd company logo
BLACKBOX AND WHITEBOX TESTING
BLACKBOX TESTING
 In Black Box Testing we just focus on inputs and
output of the software system without bothering
about internal knowledge of the software program.
[Figure of Blackbox Testing]
 The above Black Box executable program can be any
software system you want to test.
BLACKBOX TESTING
 By applying black-box techniques, you derive a set of
test cases that satisfy the following criteria:
 (1) test cases that reduce, by a count that is greater
than one the number of additional test cases that must
be designed to achieve reasonable testing, and
 (2) test cases that tell you something about the
presence or absence of classes of errors, rather than
an error associated only with the specific test at hand.
BLACKBOX TESTING
 Blackbox Techniques/ Methods:
 Equivalence partitioning: It is a software test design
technique that involves dividing input values into valid
and invalid partitions and selecting representative
values from each partition as test data.
 Boundary Value Analysis: It is a software test design
technique that involves determination of boundaries
for input values and selecting values that are at the
boundaries and just inside/ outside of the boundaries
as test data.
 Cause effect graphing: It is a software test design
technique that involves identifying the cases (input
conditions) and effects (output conditions), producing
a Cause-Effect Graph, and generating test cases
accordingly.
WHITEBOX TESTING:
 White Box Testing (also known as Clear Box Testing,
Open Box Testing, Glass Box Testing, Transparent Box
Testing, Code-Based Testing or Structural Testing) is
a software testing method in which the internal
structure/ design/ implementation of the item being
tested is known to the tester.
 White Box Testing is like the work of a mechanic who
examines the engine to see why the car is not moving.
 Using white-box testing methods, you can derive test
cases that
 (1) guarantee that all independent paths within a
module have been exercised at least once
 (2) exercise all logical decisions on their true and
false sides
 (3) execute all loops at their boundaries and within
their operational bounds
 (4) exercise internal data structures to ensure their
validity.
WHITEBOX TESTING:
WHITEBOX TESTING:
[Figure of Whitebox Testing Approach]
WHITEBOX TESTING:
Why and When White-Box Testing:
 White box testing is mainly used for detecting logical
errors in the program code.
 It is used for debugging a code, finding random
typographical errors, and uncovering incorrect
programming assumptions.
 White box testing is done at low level design and
implementable code.
 It can be applied at all levels of system development
especially Unit, system and integration testing.
 White box testing can be used for other development
artifacts like requirements analysis, designing and test
cases.
WHITEBOX TESTING:
Whitebox Testing Techniques:
 Following are Whitebox testing techniques:
 Statement coverage: This technique is aimed at
exercising all programming statements with minimal
tests.
 Branch and decision coverage: This technique is
running a series of tests to ensure that all branches are
tested at least once.
 Tools: An example of a tool that handles branch
coverage testing for C, C++ and Java applications
is TCAT-PATH
 Path coverage: This technique corresponds to testing
all possible paths which means that each statement
and branch is covered.
WHITEBOX TESTING:
[Figure of Path coverage Example]
COMPARISON OF BLACKBOX TESTING AND WHITEBOX TESTING:
COMPARISON OF BLACKBOX TESTING AND WHITEBOX TESTING:
THANK YOU

More Related Content

PPT
Black box and white box testing
PPTX
BLACK BOX & WHITE BOX TESTING.pptx
PPTX
WHITE BOX TESTING ashu.pptx
PPTX
white box and black box testing in software engineering
PPTX
oose ppt white box testing and black box
PPTX
White-box testing.pptx
PPTX
WHITE BOX & BLACK BOX TESTING IN DATABASE
PPT
CS8494 SOFTWARE ENGINEERING Unit-4
Black box and white box testing
BLACK BOX & WHITE BOX TESTING.pptx
WHITE BOX TESTING ashu.pptx
white box and black box testing in software engineering
oose ppt white box testing and black box
White-box testing.pptx
WHITE BOX & BLACK BOX TESTING IN DATABASE
CS8494 SOFTWARE ENGINEERING Unit-4

Similar to blackboxandwhiteboxtesting in software testing.ppt (20)

PPTX
SOFTWARE TESTING PRESENTATION .pptx
PPTX
White box & black box testing
PDF
Paper 06
PPT
Testing, black ,white and gray box testing
PPT
Testing chapter updated (1)
PPTX
White box black box & gray box testing
PPTX
Whitebox Testing,Types,Different techniques
PPT
Dynamic Testing
PDF
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
PPTX
Introduction to White box testing
PPTX
Software testing strategies
PPTX
Testing in Software Engineering and its types.pptx
PPTX
Software engineering
PPTX
Software testing
ODP
White box ppt
PPTX
White-Box and Black-Box testing Introduction.pptx
PPTX
Lavenya Testing.pptx
PDF
Understanding White Box and Black Box Testing
PPTX
Software_Testing_Techniques_undergraduate.pptx
SOFTWARE TESTING PRESENTATION .pptx
White box & black box testing
Paper 06
Testing, black ,white and gray box testing
Testing chapter updated (1)
White box black box & gray box testing
Whitebox Testing,Types,Different techniques
Dynamic Testing
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
Introduction to White box testing
Software testing strategies
Testing in Software Engineering and its types.pptx
Software engineering
Software testing
White box ppt
White-Box and Black-Box testing Introduction.pptx
Lavenya Testing.pptx
Understanding White Box and Black Box Testing
Software_Testing_Techniques_undergraduate.pptx
Ad

More from suchita74 (20)

PPTX
information technology act111111111.pptx
PPTX
Characteristics or Nature of Financial Services.pptx
PPTX
Agile Development Models in Software EngineeringE.pptx
PPTX
gantt chart & pert in Software engineering.pptx
PPTX
ITERATIVE model in software engineering.pptx
PPTX
The role of certifying authorities in IPR
PPT
networking.ppt
PPTX
Subfields of Artificial Intelligence.pptx
PPTX
Means End Analysis (MEA) in Artificial.pptx
PPTX
What is Fuzzy Logic in AI and applications.pptx
PPTX
venture capital.pptx
PPTX
Knowledge-Based Agent in Artificial intelligence.pptx
PPTX
dominance of MNCs.pptx
PPTX
Rational Agent.pptx
PPTX
5_lectureslides.pptx
PDF
4-220218152210.pdf
PPTX
factors affecting IM.pptx
PPTX
ALAN TURING MACHINE.pptx
PPTX
SEI-CMM.pptx
PPTX
RAD MODEL.pptx
information technology act111111111.pptx
Characteristics or Nature of Financial Services.pptx
Agile Development Models in Software EngineeringE.pptx
gantt chart & pert in Software engineering.pptx
ITERATIVE model in software engineering.pptx
The role of certifying authorities in IPR
networking.ppt
Subfields of Artificial Intelligence.pptx
Means End Analysis (MEA) in Artificial.pptx
What is Fuzzy Logic in AI and applications.pptx
venture capital.pptx
Knowledge-Based Agent in Artificial intelligence.pptx
dominance of MNCs.pptx
Rational Agent.pptx
5_lectureslides.pptx
4-220218152210.pdf
factors affecting IM.pptx
ALAN TURING MACHINE.pptx
SEI-CMM.pptx
RAD MODEL.pptx
Ad

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Trump Administration's workforce development strategy
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Pharma ospi slides which help in ospi learning
PDF
01-Introduction-to-Information-Management.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Complications of Minimal Access Surgery at WLH
PDF
Yogi Goddess Pres Conference Studio Updates
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Microbial disease of the cardiovascular and lymphatic systems
Classroom Observation Tools for Teachers
O5-L3 Freight Transport Ops (International) V1.pdf
Microbial diseases, their pathogenesis and prophylaxis
Trump Administration's workforce development strategy
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Pharma ospi slides which help in ospi learning
01-Introduction-to-Information-Management.pdf
VCE English Exam - Section C Student Revision Booklet
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Complications of Minimal Access Surgery at WLH
Yogi Goddess Pres Conference Studio Updates
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
human mycosis Human fungal infections are called human mycosis..pptx
A systematic review of self-coping strategies used by university students to ...
Module 4: Burden of Disease Tutorial Slides S2 2025
Microbial disease of the cardiovascular and lymphatic systems

blackboxandwhiteboxtesting in software testing.ppt

  • 2. BLACKBOX TESTING  In Black Box Testing we just focus on inputs and output of the software system without bothering about internal knowledge of the software program. [Figure of Blackbox Testing]  The above Black Box executable program can be any software system you want to test.
  • 3. BLACKBOX TESTING  By applying black-box techniques, you derive a set of test cases that satisfy the following criteria:  (1) test cases that reduce, by a count that is greater than one the number of additional test cases that must be designed to achieve reasonable testing, and  (2) test cases that tell you something about the presence or absence of classes of errors, rather than an error associated only with the specific test at hand.
  • 4. BLACKBOX TESTING  Blackbox Techniques/ Methods:  Equivalence partitioning: It is a software test design technique that involves dividing input values into valid and invalid partitions and selecting representative values from each partition as test data.  Boundary Value Analysis: It is a software test design technique that involves determination of boundaries for input values and selecting values that are at the boundaries and just inside/ outside of the boundaries as test data.  Cause effect graphing: It is a software test design technique that involves identifying the cases (input conditions) and effects (output conditions), producing a Cause-Effect Graph, and generating test cases accordingly.
  • 5. WHITEBOX TESTING:  White Box Testing (also known as Clear Box Testing, Open Box Testing, Glass Box Testing, Transparent Box Testing, Code-Based Testing or Structural Testing) is a software testing method in which the internal structure/ design/ implementation of the item being tested is known to the tester.  White Box Testing is like the work of a mechanic who examines the engine to see why the car is not moving.  Using white-box testing methods, you can derive test cases that  (1) guarantee that all independent paths within a module have been exercised at least once
  • 6.  (2) exercise all logical decisions on their true and false sides  (3) execute all loops at their boundaries and within their operational bounds  (4) exercise internal data structures to ensure their validity. WHITEBOX TESTING:
  • 7. WHITEBOX TESTING: [Figure of Whitebox Testing Approach]
  • 8. WHITEBOX TESTING: Why and When White-Box Testing:  White box testing is mainly used for detecting logical errors in the program code.  It is used for debugging a code, finding random typographical errors, and uncovering incorrect programming assumptions.  White box testing is done at low level design and implementable code.  It can be applied at all levels of system development especially Unit, system and integration testing.  White box testing can be used for other development artifacts like requirements analysis, designing and test cases.
  • 9. WHITEBOX TESTING: Whitebox Testing Techniques:  Following are Whitebox testing techniques:  Statement coverage: This technique is aimed at exercising all programming statements with minimal tests.  Branch and decision coverage: This technique is running a series of tests to ensure that all branches are tested at least once.  Tools: An example of a tool that handles branch coverage testing for C, C++ and Java applications is TCAT-PATH  Path coverage: This technique corresponds to testing all possible paths which means that each statement and branch is covered.
  • 10. WHITEBOX TESTING: [Figure of Path coverage Example]
  • 11. COMPARISON OF BLACKBOX TESTING AND WHITEBOX TESTING:
  • 12. COMPARISON OF BLACKBOX TESTING AND WHITEBOX TESTING: