1
University of Azad Jammu & Kashmir Neelum
Campus Athmuqam
Presented by:
Aamir Mushtaq Shakir Roll No: 09
M. Ejaz Khan Roll No: 10
Session fall 2014-fall 2018
Semester 7th
Presentation Topic: Difference between Black box, White box
and Gray box testing
2
We will discuss:
Test
Software testing
Black box testing
White box testing
Gray box testing
Examples
Advantages and disadvantages of each box
Comparison of these boxes.
3
What does Test mean
The word “TEST” is derived from the
Latin word “Testum” used to measure or
assess
Software Testing
Testing of software means assessing or
Measuring the software to determine
its QUALITY
4
The technique of testing without having
any knowledge of the interior workings of the
application is Black Box testing
Black box testing is a method of software
testing that examines the functionality of an
application
Determines whether combinations of inputs
and operations produce expected results
Black Box Testing
5
Cont…Cont…
When performing a black box test, a tester will
interact with the system's user interface by providing
inputs and examining outputs without knowing how
and where the inputs are worked upon
6
ExampleExample
A tester, without knowledge of the internal
structures of a website, tests the web
pages by using a browser; providing
inputs (clicks, keystrokes) and verifying
the outputs against the expected outcome.
7
Black Box Testing Advantages
Efficient Testing: Well suited and efficient for
large code segments or units.
Independency: Tester and programmer are
independent of each other
Non intrusive: code access not required.
No Coding Skill Required: Tester need not know
programming languages or how the software has been
implemented.
8
Black Box Testing Disadvantages
Localized Testing: Limited code path
coverage since only a limited number of test
inputs are actually tested.
Blind Coverage: cannot control targeting
code segments or paths which may be more
error prone than others
Redundant: Tests can be redundant if the
software designer/ developer has already run a
test case. 9
White box testing
• White box testing is a method of testing software
that
tests internal structures or working of an application
• In white-box testing an internal perspective of the
system , as well as programming skills, are used to
design test cases
• It is also known as clear box testing, glass box
testing, transparent box testing, and structural
testing 10
Cont…
• White box testing is the detailed investigation
of internal logic and structure of the code
• In order to perform white box testing of an
application , the tester needs to possess
knowledge of the internal working of the code
11
Example
A tester, usually a developer as well, studies
the implementation code of a certain field on
a webpage, determines all legal (valid
and invalid) and illegal inputs and verifies
the outputs against the expected outcomes,
which is also determined by studying the
implementation code.
12
Advantages of White box testing
Early Defect Identification: Analyzing source
code and developing tests based on the
implementation details enables testers to find
programming errors quickly.
No Waiting: Testing can be commenced at an
earlier stage. One need not wait for the GUI to be
available.
Optimizing: It helps in optimizing the code
• Extra lines of code can be removed which can be
bring in hidden defects
13
White Box Testing Disadvantages
Difficult to Scale: requires intimate knowledge of target
system, testing tools and coding languages, and modeling. It
suffers for scalability of skilled and expert testers.
Difficult to Maintain: It requires specialized tools such as
source code analyzers, debuggers, and fault injectors.
Skipping: Sometimes it is impossible to look into every
corner to find out hidden errors that may create problems as
many paths will go untested
Mechanic Work: White Box Testing is like the work of
a mechanic who examines the engine to see why the
car is not moving. 14
Gray Box Testing
 Gray box testing is a combination of white box
testing and black box testing
The aim of this testing is to search for the defects if
any due to improper structure or improper usage of
Applications
Gray-box testing is also known as translucent testing
15
Example
Testing a calculator for the
features like testing for all
operations at the same time if
any problem arises then we make
a change in HTML code and
check further so at the same we
go for white boxtesting(changing
codes in backend) and black box
testing(testing features on front
end).
Gray Box Testing
16
Gray-Box testing Advantages
Offers Combined Benefits: Offers combined
benefits of black box and white box testing wherever
possible.
Non Intrusive: Grey box testers don't rely on the
source code; instead they rely on interface definition
and functional Specifications
The test is done from the point of view of the user
and not the designer
17
Gray-Box testing Disadvantages
Partial Code Coverage: Since the access to source
code is not available, the ability to go over the code
and test coverage is limited.
Redundancy: The tests can be redundant if the
software designer has already run a test case.
18
Bridge between Black Box and White Box –
Gray Box Testing Technique
Comparison between the Three Testing Types
19
20
21

More Related Content

PPTX
Introduction to software testing
PPT
Black box & white-box testing technique
PPT
Software Testing Tutorials - MindScripts Technologies, Pune
PPTX
Black box testing or behavioral testing
PPTX
Regression testing
PPT
Basic software-testing-concepts
PPTX
Alpha and beta testing
PPTX
White Box Testing
Introduction to software testing
Black box & white-box testing technique
Software Testing Tutorials - MindScripts Technologies, Pune
Black box testing or behavioral testing
Regression testing
Basic software-testing-concepts
Alpha and beta testing
White Box Testing

What's hot (20)

PPTX
White box black box & gray box testing
PPTX
White box testing
PPTX
3.software testing
PPTX
5 black box and grey box testing
PPTX
Bug Tracking System
PPTX
Software testing
PDF
An introduction to unit testing
PPTX
White box & Black box testing
PPTX
Acceptance testing
PPT
Software Testing Fundamentals
PDF
Black Box Testing
PPT
Code coverage
PDF
Software testing
PPTX
Testing ppt
PPT
PDF
ISTQB Foundation Level Basic
PPTX
PPTX
SonarQube Presentation.pptx
PPTX
Software Testing Introduction
PPTX
Automation Testing With Appium
White box black box & gray box testing
White box testing
3.software testing
5 black box and grey box testing
Bug Tracking System
Software testing
An introduction to unit testing
White box & Black box testing
Acceptance testing
Software Testing Fundamentals
Black Box Testing
Code coverage
Software testing
Testing ppt
ISTQB Foundation Level Basic
SonarQube Presentation.pptx
Software Testing Introduction
Automation Testing With Appium
Ad

Similar to Testing, black ,white and gray box testing (20)

PPTX
BLACK BOX & WHITE BOX TESTING.pptx
PPTX
WHITE BOX TESTING ashu.pptx
PPTX
WHITE BOX & BLACK BOX TESTING IN DATABASE
PDF
Understanding White Box and Black Box Testing
PPTX
white box and black box testing in software engineering
PDF
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
PPTX
Testing in Software Engineering and its types.pptx
PPTX
Grey box testing in software security involves assessing the security of a sy...
PPT
Testing chapter updated (1)
PPTX
White box & black box testing
PPTX
Software testing
PPTX
UNIT testing
PPTX
System Testing.pptx
PPTX
Software_Testing_Techniques_undergraduate.pptx
PPT
blackboxandwhiteboxtesting in software testing.ppt
PPTX
Testing (System Analysis and Design)
PPTX
19 Software Testing Techniques presentation file.pptx
PPTX
Software testing methods
BLACK BOX & WHITE BOX TESTING.pptx
WHITE BOX TESTING ashu.pptx
WHITE BOX & BLACK BOX TESTING IN DATABASE
Understanding White Box and Black Box Testing
white box and black box testing in software engineering
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
Testing in Software Engineering and its types.pptx
Grey box testing in software security involves assessing the security of a sy...
Testing chapter updated (1)
White box & black box testing
Software testing
UNIT testing
System Testing.pptx
Software_Testing_Techniques_undergraduate.pptx
blackboxandwhiteboxtesting in software testing.ppt
Testing (System Analysis and Design)
19 Software Testing Techniques presentation file.pptx
Software testing methods
Ad

Recently uploaded (20)

PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Trump Administration's workforce development strategy
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
My India Quiz Book_20210205121199924.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
Complications of Minimal Access-Surgery.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
FORM 1 BIOLOGY MIND MAPS and their schemes
Weekly quiz Compilation Jan -July 25.pdf
Trump Administration's workforce development strategy
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
LDMMIA Reiki Yoga Finals Review Spring Summer
Share_Module_2_Power_conflict_and_negotiation.pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
What if we spent less time fighting change, and more time building what’s rig...
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
AI-driven educational solutions for real-life interventions in the Philippine...
My India Quiz Book_20210205121199924.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Introduction to pro and eukaryotes and differences.pptx
TNA_Presentation-1-Final(SAVE)) (1).pptx
Complications of Minimal Access-Surgery.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
B.Sc. DS Unit 2 Software Engineering.pptx
Paper A Mock Exam 9_ Attempt review.pdf.

Testing, black ,white and gray box testing

  • 1. 1
  • 2. University of Azad Jammu & Kashmir Neelum Campus Athmuqam Presented by: Aamir Mushtaq Shakir Roll No: 09 M. Ejaz Khan Roll No: 10 Session fall 2014-fall 2018 Semester 7th Presentation Topic: Difference between Black box, White box and Gray box testing 2
  • 3. We will discuss: Test Software testing Black box testing White box testing Gray box testing Examples Advantages and disadvantages of each box Comparison of these boxes. 3
  • 4. What does Test mean The word “TEST” is derived from the Latin word “Testum” used to measure or assess Software Testing Testing of software means assessing or Measuring the software to determine its QUALITY 4
  • 5. The technique of testing without having any knowledge of the interior workings of the application is Black Box testing Black box testing is a method of software testing that examines the functionality of an application Determines whether combinations of inputs and operations produce expected results Black Box Testing 5
  • 6. Cont…Cont… When performing a black box test, a tester will interact with the system's user interface by providing inputs and examining outputs without knowing how and where the inputs are worked upon 6
  • 7. ExampleExample A tester, without knowledge of the internal structures of a website, tests the web pages by using a browser; providing inputs (clicks, keystrokes) and verifying the outputs against the expected outcome. 7
  • 8. Black Box Testing Advantages Efficient Testing: Well suited and efficient for large code segments or units. Independency: Tester and programmer are independent of each other Non intrusive: code access not required. No Coding Skill Required: Tester need not know programming languages or how the software has been implemented. 8
  • 9. Black Box Testing Disadvantages Localized Testing: Limited code path coverage since only a limited number of test inputs are actually tested. Blind Coverage: cannot control targeting code segments or paths which may be more error prone than others Redundant: Tests can be redundant if the software designer/ developer has already run a test case. 9
  • 10. White box testing • White box testing is a method of testing software that tests internal structures or working of an application • In white-box testing an internal perspective of the system , as well as programming skills, are used to design test cases • It is also known as clear box testing, glass box testing, transparent box testing, and structural testing 10
  • 11. Cont… • White box testing is the detailed investigation of internal logic and structure of the code • In order to perform white box testing of an application , the tester needs to possess knowledge of the internal working of the code 11
  • 12. Example A tester, usually a developer as well, studies the implementation code of a certain field on a webpage, determines all legal (valid and invalid) and illegal inputs and verifies the outputs against the expected outcomes, which is also determined by studying the implementation code. 12
  • 13. Advantages of White box testing Early Defect Identification: Analyzing source code and developing tests based on the implementation details enables testers to find programming errors quickly. No Waiting: Testing can be commenced at an earlier stage. One need not wait for the GUI to be available. Optimizing: It helps in optimizing the code • Extra lines of code can be removed which can be bring in hidden defects 13
  • 14. White Box Testing Disadvantages Difficult to Scale: requires intimate knowledge of target system, testing tools and coding languages, and modeling. It suffers for scalability of skilled and expert testers. Difficult to Maintain: It requires specialized tools such as source code analyzers, debuggers, and fault injectors. Skipping: Sometimes it is impossible to look into every corner to find out hidden errors that may create problems as many paths will go untested Mechanic Work: White Box Testing is like the work of a mechanic who examines the engine to see why the car is not moving. 14
  • 15. Gray Box Testing  Gray box testing is a combination of white box testing and black box testing The aim of this testing is to search for the defects if any due to improper structure or improper usage of Applications Gray-box testing is also known as translucent testing 15
  • 16. Example Testing a calculator for the features like testing for all operations at the same time if any problem arises then we make a change in HTML code and check further so at the same we go for white boxtesting(changing codes in backend) and black box testing(testing features on front end). Gray Box Testing 16
  • 17. Gray-Box testing Advantages Offers Combined Benefits: Offers combined benefits of black box and white box testing wherever possible. Non Intrusive: Grey box testers don't rely on the source code; instead they rely on interface definition and functional Specifications The test is done from the point of view of the user and not the designer 17
  • 18. Gray-Box testing Disadvantages Partial Code Coverage: Since the access to source code is not available, the ability to go over the code and test coverage is limited. Redundancy: The tests can be redundant if the software designer has already run a test case. 18
  • 19. Bridge between Black Box and White Box – Gray Box Testing Technique Comparison between the Three Testing Types 19
  • 20. 20
  • 21. 21