SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Software testing
Software testing Software testing
Software testing
 
Testing methodology
Testing methodologyTesting methodology
Testing methodology
 
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
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
 
Sanity testing and smoke testing
Sanity testing and smoke testingSanity testing and smoke testing
Sanity testing and smoke testing
 
Software testing
Software testingSoftware testing
Software testing
 
Chapter 9 Testing Strategies.ppt
Chapter 9 Testing Strategies.pptChapter 9 Testing Strategies.ppt
Chapter 9 Testing Strategies.ppt
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
 
White box & Black box testing
White box & Black box testingWhite box & Black box testing
White box & Black box testing
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
 
Manual testing ppt
Manual testing pptManual testing ppt
Manual testing ppt
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
Manual Testing.
Manual Testing.Manual Testing.
Manual Testing.
 
Types of testing
Types of testingTypes of testing
Types of testing
 
Software testing principles
Software testing principlesSoftware testing principles
Software testing principles
 
Testing in Agile Projects
Testing in Agile ProjectsTesting in Agile Projects
Testing in Agile Projects
 
Bug life cycle
Bug life cycleBug life cycle
Bug life cycle
 

Ähnlich wie WHITE BOX TESTING ashu.pptx

Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptxmianshafa
 
Testing chapter updated (1)
Testing chapter updated (1)Testing chapter updated (1)
Testing chapter updated (1)abdullah619
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)1Arun_Pandey
 
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...KrishnaVeni451953
 
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...KrishnaVeni451953
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentalsAbdul Basit
 
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 BugRaptors
 
unittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentunittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentAkshayaM79
 
White box & black box testing
White box & black box testingWhite box & black box testing
White box & black box testingSaket Khopkar
 
White box testing
White box testing White box testing
White box testing Mani Kanth
 
Object Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesObject Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesPunjab University
 
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 testingHimanshu
 

Ähnlich wie 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
 

Kürzlich hochgeladen

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..pdfPearlKirahMaeRagusta1
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
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 🔝✔️✔️Delhi Call girls
 
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-...Steffen Staab
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%+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
 
%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 kaalfonteinmasabamasaba
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
%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 Bahrainmasabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
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.pdfkalichargn70th171
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile EnvironmentVictorSzoltysek
 

Kürzlich hochgeladen (20)

Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
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
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
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 🔝✔️✔️
 
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-...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%+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...
 
%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
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%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
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
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
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 

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.