SlideShare a Scribd company logo
1 of 21
BLACK BOX &WHITEBOX
TESTING
Presented By:
Mohammad Shahjalal Khan
B.Sc. Engineering in Information and Communication Technology,
Comilla University, Bangladesh.
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
In Black Box Testing, we just focus on inputs and output of the
software system without bothering about internal knowledge of the
software program.
The above Black Box executable program can be any software system you want to test.
Types of Black Box Testing
 Functional Testing: It determines the system’s software
functional requirements.
Regression Testing: It ensures that the newly added
code is compatible with the existing code
 Non functional: 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.
Black Box Testing Tools
Black Box Testing tools are mainly record and playback
tools. These tools are used for Regression Testing to check
whether a new build has created any bugs in the previous
working application functionality.
 Appium
 Selenium
 Microsoft Coded UI
 Applitools
 HP QTP.
Black Box Testing Techniques
1. Equivalence Partitioning
2. Boundary Value Analysis
3. Decision Table Testing
4. State Transition Testing
5. Error Guessing
6. Graph-Based Testing Methods
7. Comparison Testing
Example of Black Box Testing
As present in the above image, the “AGE” text field accepts only
numbers from 18 to 60. There will be three sets of classes or groups.
Advantages of Black Box Testing
i. The tester does not need to have more functional knowledge or
programming skills to implement the Black Box Testing.
ii. It is efficient for implementing the tests in the larger system
iii. Tests are executed from the user’s or client’s point of view.
iv. Test cases are easily reproducible.
v. It is used in finding the ambiguity and contradictions in the
functional specifications.
Disadvantages of Black Box Testing
i. There is a possibility of repeating the same tests while
implementing the testing process.
ii. Without clear functional specifications, test cases are difficult
to implement.
iii.Sometimes, the reason for the test failure cannot be detected.
iv.Some programs in the application are not tested.
v. It does not reveal the errors in the control structure.
vi.Working with a large sample space of inputs can be
exhaustive and consumes a lot of time.
White Box Testing
White box testing techniques analyze the internal structures
the used data structures, internal design, code structure, and
the working of the software rather than just the functionality
as in black box testing.
It is also called glass box testing or clear box testing or
structural testing and also known as transparent testing, open
box testing.
White Box Testing
Types of White box Testing
Working process of white box testing
Input: Requirements, Functional specifications, design documents,
source code.
Processing: Performing risk analysis for guiding through the entire
process.
Proper test planning: Designing test cases so as to cover the entire
code. Execute rinse-repeat until error-free software is reached. Also, the
results are communicated.
Output: Preparing final report of the entire testing process.
White Box Testing Techniques
1. Statement coverage: In this method of validating whether
each and every line of the code is executed at least once.
2. Branch Coverage: In this technique, test cases are designed
so that each branch from all decision points are traversed at
least once true or false.
3. Basis Path Testing: In this technique, tests all the paths of
the program. This is a comprehensive technique which
ensures that all the paths of the program are traversed at least
once.
Tools required for White box Testing
o PyUnit
o Sqlmap
o Nmap
o Parasoft Jtest
o Nunit
o VeraUnit
o CppUnit
White Box Testing: Example
o READ X
o READ Y
o IF (X > Y)
o PRINT “X is greater that Y”
o ENDIF
o To get 100% statement coverage only one test case is sufficient for this
pseudo-code.
o TEST CASE 1: X=10 Y=5
o However this test case won’t give you 100% decision coverage as the
FALSE condition of the IF statement is not exercised.
o In order to achieve 100% decision coverage we need to exercise the FALSE
condition of the IF statement which will be covered when X is less than Y.
Advantages of White Box Testing
i. White box testing is very thorough as the entire code and
structures are tested.
ii. It results in the optimization of code removing error and helps in
removing extra lines of code.
iii. It can start at an earlier stage as it doesn’t require any interface
as in case of black box testing.
iv. Easy to automate.
v. White box testing can be easily started in Software
Development Life Cycle.
vi. Easy Code Optimization.
Disadvantages of White Box Testing
i. It is very expensive.
ii. Redesign of code and rewriting code needs test cases to be
written again.
iii. Testers are required to have in-depth knowledge of the code and
programming language as opposed to black box testing.
iv. Missing functionalities cannot be detected as the code that exists
is tested.
v. Very complex and at times not realistic.
vi. Much more chances of Errors in production
Difference Between White Box Testing and Black Box
Testing
Black Box Testing
• Used to evaluate the software without
understanding how it works on the inside.
• Testers are in charge of this.
• It is not necessary to know how to
program.
• Testing at the next level.
• It takes less time
• Black box testing comes in a variety of
shapes and sizes: Functional evaluation,
Regression analysis, Testing that is not
functional.
• Not appropriate for testing algorithms.
White Box Testing
• Executed after understanding the
software's fundamental structure.
• Developers worked on it.
• Knowledge of programming is required.
• Testing at a lower level.
• It takes a lot of time.
• White box testing comes in a variety of
shapes and sizes: Path testing, Testing
loops, Evaluation of the environment.
• Appropriate for algorithm testing.
THANK YOU EVERYONE

More Related Content

What's hot

Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing TechniquesKiran Kumar
 
Integration testing
Integration testingIntegration testing
Integration testingqueen jemila
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategiesSHREEHARI WADAWADAGI
 
Types of software testing
Types of software testingTypes of software testing
Types of software testingPrachi Sasankar
 
System testing ppt
System testing pptSystem testing ppt
System testing pptL ESHWAR
 
McCall's Quality Factors
McCall's Quality FactorsMcCall's Quality Factors
McCall's Quality FactorsUsman Khan
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and typesConfiz
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design conceptssrijavel
 
Boundary value analysis
Boundary value analysisBoundary value analysis
Boundary value analysisVadym Muliavka
 
Chapter 3 SOFTWARE TESTING PROCESS
Chapter 3 SOFTWARE TESTING PROCESSChapter 3 SOFTWARE TESTING PROCESS
Chapter 3 SOFTWARE TESTING PROCESSst. michael
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assuranceAman Adhikari
 
software engineering notes for cse/it fifth semester
software engineering notes for cse/it fifth semestersoftware engineering notes for cse/it fifth semester
software engineering notes for cse/it fifth semesterrajesh199155
 
Test case techniques
Test case techniquesTest case techniques
Test case techniquesPina Parmar
 
Unified Process
Unified ProcessUnified Process
Unified Processguy_davis
 
Testing (System Analysis and Design)
Testing (System Analysis and Design)Testing (System Analysis and Design)
Testing (System Analysis and Design)Areeb Khan
 

What's hot (20)

Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Integration testing
Integration testingIntegration testing
Integration testing
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
System testing ppt
System testing pptSystem testing ppt
System testing ppt
 
McCall's Quality Factors
McCall's Quality FactorsMcCall's Quality Factors
McCall's Quality Factors
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Boundary value analysis
Boundary value analysisBoundary value analysis
Boundary value analysis
 
Chapter 3 SOFTWARE TESTING PROCESS
Chapter 3 SOFTWARE TESTING PROCESSChapter 3 SOFTWARE TESTING PROCESS
Chapter 3 SOFTWARE TESTING PROCESS
 
Software testing
Software testingSoftware testing
Software testing
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
software engineering notes for cse/it fifth semester
software engineering notes for cse/it fifth semestersoftware engineering notes for cse/it fifth semester
software engineering notes for cse/it fifth semester
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
Unified Process
Unified ProcessUnified Process
Unified Process
 
Testing (System Analysis and Design)
Testing (System Analysis and Design)Testing (System Analysis and Design)
Testing (System Analysis and Design)
 

Similar to BLACK BOX & WHITE BOX TESTING.pptx

Testing chapter updated (1)
Testing chapter updated (1)Testing chapter updated (1)
Testing chapter updated (1)abdullah619
 
White box & Black box testing
White box & Black box testingWhite box & Black box testing
White box & Black box testingNitishMhaske1
 
WHITE BOX & BLACK BOX TESTING IN DATABASE
WHITE BOX & BLACK BOXTESTING IN DATABASEWHITE BOX & BLACK BOXTESTING IN DATABASE
WHITE BOX & BLACK BOX TESTING IN DATABASESalman Memon
 
Testing, black ,white and gray box testing
Testing, black ,white and gray box testingTesting, black ,white and gray box testing
Testing, black ,white and gray box testingAamir Shakir
 
Software, Security, manual testing training in Chandigarh
Software, Security, manual testing training in Chandigarh          Software, Security, manual testing training in Chandigarh
Software, Security, manual testing training in Chandigarh tapsi sharma
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentalsAbdul Basit
 
Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptxmianshafa
 
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
 
Software testing
Software testingSoftware testing
Software testingGolu Gupta
 
software testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblbsoftware testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblbjeyasrig
 
Software Testing - Day Two
Software Testing - Day TwoSoftware Testing - Day Two
Software Testing - Day TwoGovardhan Reddy
 
White box testing
White box testing White box testing
White box testing Mani Kanth
 
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
 
White-box testing.pptx
White-box testing.pptxWhite-box testing.pptx
White-box testing.pptxhalaalz3by
 

Similar to BLACK BOX & WHITE BOX TESTING.pptx (20)

Software testing
Software testingSoftware testing
Software testing
 
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)
 
White box & Black box testing
White box & Black box testingWhite box & Black box testing
White box & Black box testing
 
Black box testing
Black box testingBlack box testing
Black box testing
 
WHITE BOX & BLACK BOX TESTING IN DATABASE
WHITE BOX & BLACK BOXTESTING IN DATABASEWHITE BOX & BLACK BOXTESTING IN DATABASE
WHITE BOX & BLACK BOX TESTING IN DATABASE
 
Testing, black ,white and gray box testing
Testing, black ,white and gray box testingTesting, black ,white and gray box testing
Testing, black ,white and gray box testing
 
Software, Security, manual testing training in Chandigarh
Software, Security, manual testing training in Chandigarh          Software, Security, manual testing training in Chandigarh
Software, Security, manual testing training in Chandigarh
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
 
Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptx
 
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...
 
Software testing
Software testingSoftware testing
Software testing
 
nullcon 2011 - Fuzzing with Complexities
nullcon 2011 - Fuzzing with Complexitiesnullcon 2011 - Fuzzing with Complexities
nullcon 2011 - Fuzzing with Complexities
 
software testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblbsoftware testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblb
 
UNIT testing
UNIT testingUNIT testing
UNIT testing
 
Software Testing - Day Two
Software Testing - Day TwoSoftware Testing - Day Two
Software Testing - Day Two
 
White box testing
White box testing White box testing
White box testing
 
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...
 
White-box testing.pptx
White-box testing.pptxWhite-box testing.pptx
White-box testing.pptx
 

Recently uploaded

Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxnada99848
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 

Recently uploaded (20)

Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptx
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 

BLACK BOX & WHITE BOX TESTING.pptx

  • 1. BLACK BOX &WHITEBOX TESTING Presented By: Mohammad Shahjalal Khan B.Sc. Engineering in Information and Communication Technology, Comilla University, Bangladesh.
  • 2. 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
  • 3. In Black Box Testing, we just focus on inputs and output of the software system without bothering about internal knowledge of the software program. The above Black Box executable program can be any software system you want to test.
  • 4. Types of Black Box Testing  Functional Testing: It determines the system’s software functional requirements. Regression Testing: It ensures that the newly added code is compatible with the existing code  Non functional: 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.
  • 5. Black Box Testing Tools Black Box Testing tools are mainly record and playback tools. These tools are used for Regression Testing to check whether a new build has created any bugs in the previous working application functionality.  Appium  Selenium  Microsoft Coded UI  Applitools  HP QTP.
  • 6. Black Box Testing Techniques 1. Equivalence Partitioning 2. Boundary Value Analysis 3. Decision Table Testing 4. State Transition Testing 5. Error Guessing 6. Graph-Based Testing Methods 7. Comparison Testing
  • 7. Example of Black Box Testing As present in the above image, the “AGE” text field accepts only numbers from 18 to 60. There will be three sets of classes or groups.
  • 8. Advantages of Black Box Testing i. The tester does not need to have more functional knowledge or programming skills to implement the Black Box Testing. ii. It is efficient for implementing the tests in the larger system iii. Tests are executed from the user’s or client’s point of view. iv. Test cases are easily reproducible. v. It is used in finding the ambiguity and contradictions in the functional specifications.
  • 9. Disadvantages of Black Box Testing i. There is a possibility of repeating the same tests while implementing the testing process. ii. Without clear functional specifications, test cases are difficult to implement. iii.Sometimes, the reason for the test failure cannot be detected. iv.Some programs in the application are not tested. v. It does not reveal the errors in the control structure. vi.Working with a large sample space of inputs can be exhaustive and consumes a lot of time.
  • 11. White box testing techniques analyze the internal structures the used data structures, internal design, code structure, and the working of the software rather than just the functionality as in black box testing. It is also called glass box testing or clear box testing or structural testing and also known as transparent testing, open box testing. White Box Testing
  • 12.
  • 13. Types of White box Testing
  • 14. Working process of white box testing Input: Requirements, Functional specifications, design documents, source code. Processing: Performing risk analysis for guiding through the entire process. Proper test planning: Designing test cases so as to cover the entire code. Execute rinse-repeat until error-free software is reached. Also, the results are communicated. Output: Preparing final report of the entire testing process.
  • 15. White Box Testing Techniques 1. Statement coverage: In this method of validating whether each and every line of the code is executed at least once. 2. Branch Coverage: In this technique, test cases are designed so that each branch from all decision points are traversed at least once true or false. 3. Basis Path Testing: In this technique, tests all the paths of the program. This is a comprehensive technique which ensures that all the paths of the program are traversed at least once.
  • 16. Tools required for White box Testing o PyUnit o Sqlmap o Nmap o Parasoft Jtest o Nunit o VeraUnit o CppUnit
  • 17. White Box Testing: Example o READ X o READ Y o IF (X > Y) o PRINT “X is greater that Y” o ENDIF o To get 100% statement coverage only one test case is sufficient for this pseudo-code. o TEST CASE 1: X=10 Y=5 o However this test case won’t give you 100% decision coverage as the FALSE condition of the IF statement is not exercised. o In order to achieve 100% decision coverage we need to exercise the FALSE condition of the IF statement which will be covered when X is less than Y.
  • 18. Advantages of White Box Testing i. White box testing is very thorough as the entire code and structures are tested. ii. It results in the optimization of code removing error and helps in removing extra lines of code. iii. It can start at an earlier stage as it doesn’t require any interface as in case of black box testing. iv. Easy to automate. v. White box testing can be easily started in Software Development Life Cycle. vi. Easy Code Optimization.
  • 19. Disadvantages of White Box Testing i. It is very expensive. ii. Redesign of code and rewriting code needs test cases to be written again. iii. Testers are required to have in-depth knowledge of the code and programming language as opposed to black box testing. iv. Missing functionalities cannot be detected as the code that exists is tested. v. Very complex and at times not realistic. vi. Much more chances of Errors in production
  • 20. Difference Between White Box Testing and Black Box Testing Black Box Testing • Used to evaluate the software without understanding how it works on the inside. • Testers are in charge of this. • It is not necessary to know how to program. • Testing at the next level. • It takes less time • Black box testing comes in a variety of shapes and sizes: Functional evaluation, Regression analysis, Testing that is not functional. • Not appropriate for testing algorithms. White Box Testing • Executed after understanding the software's fundamental structure. • Developers worked on it. • Knowledge of programming is required. • Testing at a lower level. • It takes a lot of time. • White box testing comes in a variety of shapes and sizes: Path testing, Testing loops, Evaluation of the environment. • Appropriate for algorithm testing.