SlideShare a Scribd company logo
1 of 10
WHITE BOX TESTING
AND
BLACK BOX TESTING
By: Ashutosh Kumar
WHITE BOX TESTING
• White box testing is a method of software
testing that tests internal structures of the
application and also the working of the
application.
• It is also known as clear box testing,
structural box testing, transparent box
testing.
• It can be applied at the unit, integration and
system levels of the software testing process.
• Some good white box testing tools to use:
Veracode, Nunit, CppUnit, RCUNIT, etc.
WHITE BOX TESTING TECHNIQUES
• Statement Coverage Techniques:
This technique involves execution of all the statements of the source code at least one.
It is used to calculate the total number of executed statements in the source code out of total
statements present in the source code.
Branch Coverage Techniques:
In this technique, test cases are designed so that
each branch from all decision points are traversed at
least once.
In a flowchart, all edges must be traversed at least
once.
Advantages of white box testing:
 It results in the optimization of code removing error and helps in removing extra lines
of code.
This testing is more thorough than other testing approaches as it covers all code paths.
Test cases of white box testing can be easily automated.
It can be started in the SDLC phase even without GUI.
Disadvantages of white box testing:
 It is much expensive and complex.
 White box testing needs professional programmers who have a detailed knowledge and
understanding of programming language and implementation.
Redesign of code and rewriting code needs test cases to be written again.
BLACK BOX TESTING
Black box testing is a type of software testing in which the functionality of the
software is not known.
The testing is done without the internal knowledge of the products.
Black Box Testing Type:
1.Functional Testing: It determines the system’s software functional requirements.
2.Regression Testing: It ensures that the newly added code is compatible with the
existing code.
3.Nonfunctional Testing: Nonfunctional testing is also known as NFT.
This testing is not functional testing of software. It focuses on the software’s
performance, usability, and scalability.
Advantages of Black Box Testing:
The tester does not need to have more functional knowledge or programming skills
to implement the Black Box Testing.
Tests are executed from the user’s or client’s point of view.
It is efficient for implementing the tests in the larger system.
Disadvantages of Black Box Testing:
 Sometimes, the reason for the test failure cannot be detected.
 Some programs in the application are not tested.
Working with a large sample space of inputs can be exhaustive and consumes a lot
of time.
White Box Testing Black Box Testing
What the software is supposed to do , also aware
of how it does it.
In this testing, it does not aware of how the
software is supposed to do.
You should have an understanding of the
programming languages to perform this testing.
No need to have an understanding of the
programming code to perform this testing.
The developer should know about the internal
design of the code.
There is no need to know about the internal design
of the code.
Test design techniques are: Control flow testing,
Branch testing, Path testing, Statement
coverage testing, Decision coverage testing, Data
flow testing
Test design techniques are: Decision table testing,
All-pairs testing, Equivalence partitioning,
Boundary value analysis, Cause-effect graph
The developer can perform white box testing. The test engineers perform this testing.
WHITE BOX TESTING ashu.pptx

More Related Content

What's hot

UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
suhasreddy1
 
Software Development Life Cycle
Software Development Life CycleSoftware Development Life Cycle
Software Development Life Cycle
Slideshare
 

What's hot (20)

White box ppt
White box pptWhite box ppt
White box ppt
 
Black box software testing
Black box software testingBlack box software testing
Black box software testing
 
Software Testing Strategy - Unit4.pptx
Software Testing Strategy - Unit4.pptxSoftware Testing Strategy - Unit4.pptx
Software Testing Strategy - Unit4.pptx
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 
White Box Testing
White Box Testing White Box Testing
White Box Testing
 
Test cases
Test casesTest cases
Test cases
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Alpha and beta testing
Alpha and beta testingAlpha and beta testing
Alpha and beta testing
 
Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
 
UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
 
Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | Edureka
 
Unit testing with NUnit
Unit testing with NUnitUnit testing with NUnit
Unit testing with NUnit
 
Design concept -Software Engineering
Design concept -Software EngineeringDesign concept -Software Engineering
Design concept -Software Engineering
 
Software testing
Software testingSoftware testing
Software testing
 
Software Development Life Cycle
Software Development Life CycleSoftware Development Life Cycle
Software Development Life Cycle
 
Types of testing
Types of testingTypes of testing
Types of testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Software testing
Software testingSoftware testing
Software testing
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 

Similar to WHITE BOX TESTING ashu.pptx

Similar to WHITE BOX TESTING ashu.pptx (20)

Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptx
 
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
 
Testing chapter updated (1)
Testing chapter updated (1)Testing chapter updated (1)
Testing chapter updated (1)
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)
 
Software testing
Software testingSoftware testing
Software testing
 
UNIT testing
UNIT testingUNIT testing
UNIT testing
 
Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
 
Grey box testing in software security involves assessing the security of a sy...
Grey box testing in software security involves assessing the security of a sy...Grey box testing in software security involves assessing the security of a sy...
Grey box testing in software security involves assessing the security of a sy...
 
Black box testing
Black box testingBlack box testing
Black box testing
 
black-box testing is a type of software testing in which the tester is not co...
black-box testing is a type of software testing in which the tester is not co...black-box testing is a type of software testing in which the tester is not co...
black-box testing is a type of software testing in which the tester is not co...
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing
 
unittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentunittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx document
 
S440999102
S440999102S440999102
S440999102
 
White box & black box testing
White box & black box testingWhite box & black box testing
White box & black box testing
 
White box testing
White box testing White box testing
White box testing
 
Object Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesObject Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slides
 
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
 
black box testing
black box testingblack box testing
black box testing
 

Recently uploaded

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Recently uploaded (20)

10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 

WHITE BOX TESTING ashu.pptx

  • 1. WHITE BOX TESTING AND BLACK BOX TESTING By: Ashutosh Kumar
  • 2. WHITE BOX TESTING • White box testing is a method of software testing that tests internal structures of the application and also the working of the application. • It is also known as clear box testing, structural box testing, transparent box testing. • It can be applied at the unit, integration and system levels of the software testing process. • Some good white box testing tools to use: Veracode, Nunit, CppUnit, RCUNIT, etc.
  • 3. WHITE BOX TESTING TECHNIQUES • Statement Coverage Techniques: This technique involves execution of all the statements of the source code at least one. It is used to calculate the total number of executed statements in the source code out of total statements present in the source code.
  • 4. Branch Coverage Techniques: In this technique, test cases are designed so that each branch from all decision points are traversed at least once. In a flowchart, all edges must be traversed at least once.
  • 5. Advantages of white box testing:  It results in the optimization of code removing error and helps in removing extra lines of code. This testing is more thorough than other testing approaches as it covers all code paths. Test cases of white box testing can be easily automated. It can be started in the SDLC phase even without GUI. Disadvantages of white box testing:  It is much expensive and complex.  White box testing needs professional programmers who have a detailed knowledge and understanding of programming language and implementation. Redesign of code and rewriting code needs test cases to be written again.
  • 6. BLACK BOX TESTING Black box testing is a type of software testing in which the functionality of the software is not known. The testing is done without the internal knowledge of the products.
  • 7. Black Box Testing Type: 1.Functional Testing: It determines the system’s software functional requirements. 2.Regression Testing: It ensures that the newly added code is compatible with the existing code. 3.Nonfunctional Testing: Nonfunctional testing is also known as NFT. This testing is not functional testing of software. It focuses on the software’s performance, usability, and scalability.
  • 8. Advantages of Black Box Testing: The tester does not need to have more functional knowledge or programming skills to implement the Black Box Testing. Tests are executed from the user’s or client’s point of view. It is efficient for implementing the tests in the larger system. Disadvantages of Black Box Testing:  Sometimes, the reason for the test failure cannot be detected.  Some programs in the application are not tested. Working with a large sample space of inputs can be exhaustive and consumes a lot of time.
  • 9. White Box Testing Black Box Testing What the software is supposed to do , also aware of how it does it. In this testing, it does not aware of how the software is supposed to do. You should have an understanding of the programming languages to perform this testing. No need to have an understanding of the programming code to perform this testing. The developer should know about the internal design of the code. There is no need to know about the internal design of the code. Test design techniques are: Control flow testing, Branch testing, Path testing, Statement coverage testing, Decision coverage testing, Data flow testing Test design techniques are: Decision table testing, All-pairs testing, Equivalence partitioning, Boundary value analysis, Cause-effect graph The developer can perform white box testing. The test engineers perform this testing.