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

What's hot

Alpha and beta testing
Alpha and beta testingAlpha and beta testing
Alpha and beta testing
Muhammad Noman Fazil
 
Black box software testing
Black box software testingBlack box software testing
Black box software testing
Rana Muhammad Asif
 
Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
Trimantra Software Solutions
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
Alisha Roy
 
Test cases for testing mobile phone
Test cases for testing mobile phoneTest cases for testing mobile phone
Test cases for testing mobile phone
Ashwini Kamble
 
Types of Software Testing
Types of Software TestingTypes of Software Testing
Types of Software Testing
Nishant Worah
 
Fundamentals of Testing
Fundamentals of TestingFundamentals of Testing
Fundamentals of Testing
Code95
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
Confiz
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
Mani Kanth
 
White Box Testing
White Box Testing White Box Testing
White Box Testing
MariamKhan120
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
Prachi Sasankar
 
STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)
Ch Fahadi
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
Nivetha Padmanaban
 
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
 
Software testing
Software testingSoftware testing
Software testing
Madhumita Chatterjee
 
Testing Metrics
Testing MetricsTesting Metrics
Testing Metrics
PM Venkatesha Babu
 
Software testing
Software testing Software testing
Software testing
Kunal Prajapati
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
Pina Parmar
 
Software Testing
Software TestingSoftware Testing
Software Testing
Andrew Wang
 
Acceptance testing
Acceptance testingAcceptance testing
Acceptance testing
COEPD HR
 

What's hot (20)

Alpha and beta testing
Alpha and beta testingAlpha and beta testing
Alpha and beta testing
 
Black box software testing
Black box software testingBlack box software testing
Black box software testing
 
Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
 
Test cases for testing mobile phone
Test cases for testing mobile phoneTest cases for testing mobile phone
Test cases for testing mobile phone
 
Types of Software Testing
Types of Software TestingTypes of Software Testing
Types of Software Testing
 
Fundamentals of Testing
Fundamentals of TestingFundamentals of Testing
Fundamentals of Testing
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
 
White Box Testing
White Box Testing White Box Testing
White Box Testing
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
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...
 
Software testing
Software testingSoftware testing
Software testing
 
Testing Metrics
Testing MetricsTesting Metrics
Testing Metrics
 
Software testing
Software testing Software testing
Software testing
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Acceptance testing
Acceptance testingAcceptance testing
Acceptance testing
 

Similar to Testing, black ,white and gray box testing

Software testing
Software testingSoftware testing
BLACK BOX & WHITE BOX TESTING.pptx
BLACK BOX & WHITE BOX TESTING.pptxBLACK BOX & WHITE BOX TESTING.pptx
BLACK BOX & WHITE BOX TESTING.pptx
MohammadShahjalalKha
 
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
 
St 1.3
St 1.3St 1.3
White box & Black box testing
White box & Black box testingWhite box & Black box testing
White box & Black box testing
NitishMhaske1
 
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
 
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
Understanding Black Box Testing – Types, Techniques, and Examples.pdfUnderstanding Black Box Testing – Types, Techniques, and Examples.pdf
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
pCloudy
 
Software testing definition
Software testing definitionSoftware testing definition
Software testing definition
Hiro Mia
 
Software Testing - Day Two
Software Testing - Day TwoSoftware Testing - Day Two
Software Testing - Day Two
Govardhan Reddy
 
System Testing.pptx
System Testing.pptxSystem Testing.pptx
System Testing.pptx
MohamedNowfeek1
 
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
Homa Pourmohammadi
 
Bai giang-se-03mar14
Bai giang-se-03mar14Bai giang-se-03mar14
Mt s3 methodoligies&principles
Mt s3 methodoligies&principlesMt s3 methodoligies&principles
Mt s3 methodoligies&principles
TestingGeeks
 
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
Himanshu
 
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
 
UNIT testing
UNIT testingUNIT testing
UNIT testing
SKMohamedKasim
 
blackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.pptblackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.ppt
suchita74
 
Software Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCESoftware Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCE
Dr Anuranjan Misra
 
Black box testing
Black box testingBlack box testing
Black box testing
Nakul Sharma
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
Abdul Basit
 

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

Software testing
Software testingSoftware testing
Software testing
 
BLACK BOX & WHITE BOX TESTING.pptx
BLACK BOX & WHITE BOX TESTING.pptxBLACK BOX & WHITE BOX TESTING.pptx
BLACK BOX & WHITE BOX TESTING.pptx
 
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
 
St 1.3
St 1.3St 1.3
St 1.3
 
White box & Black box testing
White box & Black box testingWhite box & Black box testing
White box & 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
 
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
Understanding Black Box Testing – Types, Techniques, and Examples.pdfUnderstanding Black Box Testing – Types, Techniques, and Examples.pdf
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
 
Software testing definition
Software testing definitionSoftware testing definition
Software testing definition
 
Software Testing - Day Two
Software Testing - Day TwoSoftware Testing - Day Two
Software Testing - Day Two
 
System Testing.pptx
System Testing.pptxSystem Testing.pptx
System Testing.pptx
 
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
 
Bai giang-se-03mar14
Bai giang-se-03mar14Bai giang-se-03mar14
Bai giang-se-03mar14
 
Mt s3 methodoligies&principles
Mt s3 methodoligies&principlesMt s3 methodoligies&principles
Mt s3 methodoligies&principles
 
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 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...
 
UNIT testing
UNIT testingUNIT testing
UNIT testing
 
blackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.pptblackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.ppt
 
Software Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCESoftware Engineering TESTING AND MAINTENANCE
Software Engineering TESTING AND MAINTENANCE
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 

Recently uploaded

Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
Kalna College
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
Celine George
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
Nguyen Thanh Tu Collection
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
RandolphRadicy
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
Kalna College
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
Payaamvohra1
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Ch-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdfCh-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdf
lakshayrojroj
 
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
andagarcia212
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
Celine George
 

Recently uploaded (20)

Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Ch-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdfCh-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdf
 
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
 

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