SlideShare a Scribd company logo
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

Types of testing
Types of testingTypes of testing
Types of testing
Valarmathi Srinivasan
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-conceptsmedsherb
 
Unit testing
Unit testing Unit testing
Unit testing
Mani Kanth
 
TEST EXECUTION AND REPORTING
TEST EXECUTION AND REPORTINGTEST EXECUTION AND REPORTING
TEST EXECUTION AND REPORTINGsuhasreddy1
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Ankit Prajapati
 
System testing ppt
System testing pptSystem testing ppt
System testing pptL ESHWAR
 
Best Practices for Test Case Writing
Best Practices for Test Case WritingBest Practices for Test Case Writing
Best Practices for Test Case WritingSarah Goldberg
 
Software testing
Software testingSoftware testing
Software testing
Madhumita Chatterjee
 
Software testing
Software testingSoftware testing
Test Process
Test ProcessTest Process
Test Process
tokarthik
 
Levels Of Testing.pptx
Levels Of Testing.pptxLevels Of Testing.pptx
Levels Of Testing.pptx
SunilNagaraj10
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
Poonkodi Jayakumar
 
Types of testing
Types of testingTypes of testing
Types of testing
Sonam Agarwal
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | Edureka
Edureka!
 
Ooad lab manual(original)
Ooad lab manual(original)Ooad lab manual(original)
Ooad lab manual(original)
dipenpatelpatel
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testing
Haris Jamil
 
Manual Testing Questions
Manual Testing QuestionsManual Testing Questions
Manual Testing QuestionsUser1test
 

What's hot (20)

Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
 
Types of testing
Types of testingTypes of testing
Types of testing
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
Unit testing
Unit testing Unit testing
Unit testing
 
TEST EXECUTION AND REPORTING
TEST EXECUTION AND REPORTINGTEST EXECUTION AND REPORTING
TEST EXECUTION AND REPORTING
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
 
System testing ppt
System testing pptSystem testing ppt
System testing ppt
 
Best Practices for Test Case Writing
Best Practices for Test Case WritingBest Practices for Test Case Writing
Best Practices for Test Case Writing
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Test Process
Test ProcessTest Process
Test Process
 
Levels Of Testing.pptx
Levels Of Testing.pptxLevels Of Testing.pptx
Levels Of Testing.pptx
 
Testing
TestingTesting
Testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Types of testing
Types of testingTypes of testing
Types of testing
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | Edureka
 
Ooad lab manual(original)
Ooad lab manual(original)Ooad lab manual(original)
Ooad lab manual(original)
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testing
 
Manual Testing Questions
Manual Testing QuestionsManual Testing Questions
Manual Testing Questions
 

Similar to BLACK BOX & WHITE BOX TESTING.pptx

Software testing
Software testingSoftware testing
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
Homa Pourmohammadi
 
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 testing
NitishMhaske1
 
Black box testing
Black box testingBlack box testing
Black box testing
Nakul Sharma
 
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
Salman 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 testing
Aamir Shakir
 
Software Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCESoftware Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCE
Dr Anuranjan Misra
 
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 fundamentals
Abdul Basit
 
Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
Sophia Girls' College(Autonomous), Ajmer
 
Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptx
mianshafa
 
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 testing
Golu Gupta
 
nullcon 2011 - Fuzzing with Complexities
nullcon 2011 - Fuzzing with Complexitiesnullcon 2011 - Fuzzing with Complexities
nullcon 2011 - Fuzzing with Complexities
n|u - The Open Security Community
 
software testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblbsoftware testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblb
jeyasrig
 
unittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentunittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx document
AkshayaM79
 
UNIT testing
UNIT testingUNIT testing
UNIT testing
SKMohamedKasim
 
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
 

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 Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCESoftware Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCE
 
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
 
unittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentunittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx document
 
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
 

Recently uploaded

First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
ShamsuddeenMuhammadA
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Introduction to Pygame (Lecture 7 Python Game Development)
Introduction to Pygame (Lecture 7 Python Game Development)Introduction to Pygame (Lecture 7 Python Game Development)
Introduction to Pygame (Lecture 7 Python Game Development)
abdulrafaychaudhry
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 

Recently uploaded (20)

First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Introduction to Pygame (Lecture 7 Python Game Development)
Introduction to Pygame (Lecture 7 Python Game Development)Introduction to Pygame (Lecture 7 Python Game Development)
Introduction to Pygame (Lecture 7 Python Game Development)
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 

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.