SlideShare una empresa de Scribd logo
1 de 17
White Box ,Black Box
&
Gray Box Testing

Dr. Himanshu Hora
SRMS College of Engineering & Technology
Bareilly (INDIA)
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
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
Advantages of white box testing
• It becomes very easy to find out which type of data
can help in testing the application effectively
• It helps in optimizing the code

• Extra lines of code can be removed which can be
bring in hidden defects
• Due to the tester’s knowledge about the code ,
maximum coverage is attained during test scenario
writing
Disadvantages of white box
testing
• Due to the fact that a skilled tester is needed to
perform white box testing, the costs are increased
• Sometimes it is impossible to look into every corner
to find out hidden errors that may create problems as
many paths will go untested
• It is difficult to maintain white box testing as the use
of specialized tools like code analyzers and
debugging tools are required.
Black Box Testing
• 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
• This method of test can be applied to virtually every
level of software testing : unit , integration , system ,
and acceptance
Cont…
• The tester is oblivious to the system architecture and
does not have access to the source code
• 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
Advantages of black box testing
• Well suited and efficient for large code segments
• Code Access not required

• Clearly separates user's perspective from the
developer's perspective through visibly defined roles
• Large numbers of moderately skilled testers can test
the application with no knowledge of implementation,
programming language or operating systems
Disadvantages of black box
testing
• Limited Coverage since only a selected number of
test scenarios are actually performed
• Inefficient testing, due to the fact that the tester only
has limited knowledge about an application
• Blind Coverage, since the tester cannot target specific
code segments or error prone areas The test cases are
difficult to design
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
Cont…
• Gray-box testing is beneficial because it takes the
straightforward technique of black-box testing and
combines it with the code targeted systems in whitebox testing
Advantages of Gray box testing
• Offers combined benefits of black box and white box
testing wherever possible
• Grey box testers don't rely on the source code; instead
they rely on interface definition and functional
specifications
• Based on the limited information available, a grey
box tester can design excellent test scenarios
especially around communication protocols and data
type handling
• The test is done from the point of view of the user
and not the designer
Disadvantages of gray box testing
• Since the access to source code is not available, the
ability to go over the code and test coverage is
limited.
• The tests can be redundant if the software designer
has already run a test case.
• Testing every possible input stream is unrealistic
because it would take an unreasonable amount of
time; therefore, many program paths will go untested.
Black Box vs. Gray Box vs. White Box
S . No

Black box

Gray box

White box

1

The Internal Workings Somewhat knowledge
of an application are of
the
internal
not required to be workings are known
known

Tester
has
full
knowledge of the
Internal workings of
the application

2

Also known as closed
box
testing,
data
driven testing and
functional testing

Another term for grey
box
testing
is
translucent testing as
the tester has limited
knowledge of the
insides
of
the
application

Also known as clear
box testing, structural
testing or code based
testing

3

Performed by end
users and also by
testers and developers

Performed by end Normally done by
users and also by testers and developers
testers and developers

4

Testing is based on
external expectations Internal behavior of
the application is
unknown

Testing is done on the
basis of high level
database diagrams and
data flow diagrams

Internal workings are
fully known and the
tester can design test
data accordingly
Thank You
Dr. Himanshu Hora
SRMS College of Engineering & Technology
Bareilly (INDIA)

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

White box ppt
White box pptWhite box ppt
White box ppt
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Software Verification & Validation
Software Verification & ValidationSoftware Verification & Validation
Software Verification & Validation
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
Software testing
Software testingSoftware testing
Software testing
 
Principles of Software testing
Principles of Software testingPrinciples of Software testing
Principles of Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Requirement Engineering
Requirement EngineeringRequirement Engineering
Requirement Engineering
 
Software Testing Basics
Software Testing BasicsSoftware Testing Basics
Software Testing Basics
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process Models
 
Software Testing Principles
Software Testing PrinciplesSoftware Testing Principles
Software Testing Principles
 
What is the psychology of testing
What is the psychology of testingWhat is the psychology of testing
What is the psychology of testing
 
Need for Software Engineering
Need for Software EngineeringNeed for Software Engineering
Need for Software Engineering
 

Destacado

Types of Software Testing
Types of Software TestingTypes of Software Testing
Types of Software TestingNishant Worah
 
Bluetooth Technology
Bluetooth TechnologyBluetooth Technology
Bluetooth TechnologyUmmar Ahmed
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testingOana Feidi
 
n|u Dharamsala Humla : Memory Forensic by Tenzin Chokden
n|u Dharamsala Humla : Memory Forensic by Tenzin Chokdenn|u Dharamsala Humla : Memory Forensic by Tenzin Chokden
n|u Dharamsala Humla : Memory Forensic by Tenzin ChokdenSunil Kumar
 
Structural patterns
Structural patternsStructural patterns
Structural patternsHimanshu
 
Black And White
Black And WhiteBlack And White
Black And Whiteadam dim
 
PHP unserialization vulnerabilities: What are we missing?
PHP unserialization vulnerabilities: What are we missing?PHP unserialization vulnerabilities: What are we missing?
PHP unserialization vulnerabilities: What are we missing?Sam Thomas
 
Black & white 2
Black & white 2Black & white 2
Black & white 2posewoojin
 
Software Testing Techniques
 Software Testing Techniques  Software Testing Techniques
Software Testing Techniques Sneha Singh
 
Run Simple - Bill McDermott, SAP CEO - Keynote (koKR)
Run Simple - Bill McDermott, SAP CEO - Keynote (koKR)Run Simple - Bill McDermott, SAP CEO - Keynote (koKR)
Run Simple - Bill McDermott, SAP CEO - Keynote (koKR)Adam Park
 
An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing BugRaptors
 
금액인증 및 보안
금액인증 및 보안금액인증 및 보안
금액인증 및 보안PayGate
 
SAP Social Club 'Run Simple' -2-
SAP Social Club 'Run Simple' -2-SAP Social Club 'Run Simple' -2-
SAP Social Club 'Run Simple' -2-Creatip
 
아꿈사 발표 Node JS 프로그래밍 8장
아꿈사 발표 Node JS 프로그래밍 8장아꿈사 발표 Node JS 프로그래밍 8장
아꿈사 발표 Node JS 프로그래밍 8장Woo Yeong Choi
 
Multiplexing in Data Communication DC15
Multiplexing in Data Communication DC15Multiplexing in Data Communication DC15
Multiplexing in Data Communication DC15koolkampus
 

Destacado (20)

Gray box testing
Gray box testingGray box testing
Gray box testing
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
 
Types of Software Testing
Types of Software TestingTypes of Software Testing
Types of Software Testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Bluetooth Technology
Bluetooth TechnologyBluetooth Technology
Bluetooth Technology
 
Black box
Black boxBlack box
Black box
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testing
 
n|u Dharamsala Humla : Memory Forensic by Tenzin Chokden
n|u Dharamsala Humla : Memory Forensic by Tenzin Chokdenn|u Dharamsala Humla : Memory Forensic by Tenzin Chokden
n|u Dharamsala Humla : Memory Forensic by Tenzin Chokden
 
Structural patterns
Structural patternsStructural patterns
Structural patterns
 
Black And White
Black And WhiteBlack And White
Black And White
 
PHP unserialization vulnerabilities: What are we missing?
PHP unserialization vulnerabilities: What are we missing?PHP unserialization vulnerabilities: What are we missing?
PHP unserialization vulnerabilities: What are we missing?
 
Black & white 2
Black & white 2Black & white 2
Black & white 2
 
Software Testing Techniques
 Software Testing Techniques  Software Testing Techniques
Software Testing Techniques
 
Run Simple - Bill McDermott, SAP CEO - Keynote (koKR)
Run Simple - Bill McDermott, SAP CEO - Keynote (koKR)Run Simple - Bill McDermott, SAP CEO - Keynote (koKR)
Run Simple - Bill McDermott, SAP CEO - Keynote (koKR)
 
An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing
 
금액인증 및 보안
금액인증 및 보안금액인증 및 보안
금액인증 및 보안
 
SAP Social Club 'Run Simple' -2-
SAP Social Club 'Run Simple' -2-SAP Social Club 'Run Simple' -2-
SAP Social Club 'Run Simple' -2-
 
Software testing Report
Software testing ReportSoftware testing Report
Software testing Report
 
아꿈사 발표 Node JS 프로그래밍 8장
아꿈사 발표 Node JS 프로그래밍 8장아꿈사 발표 Node JS 프로그래밍 8장
아꿈사 발표 Node JS 프로그래밍 8장
 
Multiplexing in Data Communication DC15
Multiplexing in Data Communication DC15Multiplexing in Data Communication DC15
Multiplexing in Data Communication DC15
 

Similar a White box black box & gray 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...KrishnaVeni451953
 
black-box testing is a type of software testing in which the tester is not co...
black-box testing is a type of software testing in which the tester is not co...black-box testing is a type of software testing in which the tester is not co...
black-box testing is a type of software testing in which the tester is not co...KrishnaVeni451953
 
White box testing
White box testing White box testing
White box testing Mani Kanth
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)1Arun_Pandey
 
BLACK BOX & WHITE BOX TESTING.pptx
BLACK BOX & WHITE BOX TESTING.pptxBLACK BOX & WHITE BOX TESTING.pptx
BLACK BOX & WHITE BOX TESTING.pptxMohammadShahjalalKha
 
Different techniques-of-software-testing
Different techniques-of-software-testingDifferent techniques-of-software-testing
Different techniques-of-software-testingpooja deshmukh
 
Different techniques-of-software-testing
Different techniques-of-software-testingDifferent techniques-of-software-testing
Different techniques-of-software-testingAjit Waje
 
Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptxmianshafa
 
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
 
Mt s3 methodoligies&principles
Mt s3 methodoligies&principlesMt s3 methodoligies&principles
Mt s3 methodoligies&principlesTestingGeeks
 
Various types of software testing by kostcare | London | Waterloo
Various types of software testing by kostcare | London | WaterlooVarious types of software testing by kostcare | London | Waterloo
Various types of software testing by kostcare | London | WaterlooKostCare
 

Similar a White box black box & gray box testing (20)

St 1.3
St 1.3St 1.3
St 1.3
 
Grey box testing in software security involves assessing the security of a sy...
Grey box testing in software security involves assessing the security of a sy...Grey box testing in software security involves assessing the security of a sy...
Grey box testing in software security involves assessing the security of a sy...
 
black-box testing 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...
 
WHITE BOX TESTING ashu.pptx
WHITE BOX TESTING ashu.pptxWHITE BOX TESTING ashu.pptx
WHITE BOX TESTING ashu.pptx
 
Black box testing
Black box testingBlack box testing
Black box testing
 
White box testing
White box testing White box testing
White box testing
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)
 
White box testing
White box testingWhite box testing
White box testing
 
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
 
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
 
Different techniques-of-software-testing
Different techniques-of-software-testingDifferent techniques-of-software-testing
Different techniques-of-software-testing
 
Different techniques-of-software-testing
Different techniques-of-software-testingDifferent techniques-of-software-testing
Different techniques-of-software-testing
 
black box testing
black box testingblack box testing
black box testing
 
Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptx
 
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
 
Mt s3 methodoligies&principles
Mt s3 methodoligies&principlesMt s3 methodoligies&principles
Mt s3 methodoligies&principles
 
Various types of software testing by kostcare | London | Waterloo
Various types of software testing by kostcare | London | WaterlooVarious types of software testing by kostcare | London | Waterloo
Various types of software testing by kostcare | London | Waterloo
 
c
cc
c
 
Black box testing
Black box testingBlack box testing
Black box testing
 

Más de Himanshu

Software product line
Software product lineSoftware product line
Software product lineHimanshu
 
Shared information systems
Shared information systemsShared information systems
Shared information systemsHimanshu
 
Design Pattern
Design PatternDesign Pattern
Design PatternHimanshu
 
Creational pattern
Creational patternCreational pattern
Creational patternHimanshu
 
Architecture Review
Architecture ReviewArchitecture Review
Architecture ReviewHimanshu
 
Reliability and its principals
Reliability and its principalsReliability and its principals
Reliability and its principalsHimanshu
 
Structural and functional testing
Structural and functional testingStructural and functional testing
Structural and functional testingHimanshu
 
Pareto analysis
Pareto analysisPareto analysis
Pareto analysisHimanshu
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runnerHimanshu
 
Crud and jad
Crud and jadCrud and jad
Crud and jadHimanshu
 
Junit and cactus
Junit and cactusJunit and cactus
Junit and cactusHimanshu
 
Risk based testing and random testing
Risk based testing and random testingRisk based testing and random testing
Risk based testing and random testingHimanshu
 
Testing a data warehouses
Testing a data warehousesTesting a data warehouses
Testing a data warehousesHimanshu
 
Software testing tools and its taxonomy
Software testing tools and its taxonomySoftware testing tools and its taxonomy
Software testing tools and its taxonomyHimanshu
 
Software reliability engineering process
Software reliability engineering processSoftware reliability engineering process
Software reliability engineering processHimanshu
 
Software reliability growth model
Software reliability growth modelSoftware reliability growth model
Software reliability growth modelHimanshu
 
Software reliability tools and common software errors
Software reliability tools and common software errorsSoftware reliability tools and common software errors
Software reliability tools and common software errorsHimanshu
 
Regression and performance testing
Regression and performance testingRegression and performance testing
Regression and performance testingHimanshu
 
Eleven step of software testing process
Eleven step of software testing processEleven step of software testing process
Eleven step of software testing processHimanshu
 

Más de Himanshu (20)

Software product line
Software product lineSoftware product line
Software product line
 
Shared information systems
Shared information systemsShared information systems
Shared information systems
 
Saam
SaamSaam
Saam
 
Design Pattern
Design PatternDesign Pattern
Design Pattern
 
Creational pattern
Creational patternCreational pattern
Creational pattern
 
Architecture Review
Architecture ReviewArchitecture Review
Architecture Review
 
Reliability and its principals
Reliability and its principalsReliability and its principals
Reliability and its principals
 
Structural and functional testing
Structural and functional testingStructural and functional testing
Structural and functional testing
 
Pareto analysis
Pareto analysisPareto analysis
Pareto analysis
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runner
 
Crud and jad
Crud and jadCrud and jad
Crud and jad
 
Junit and cactus
Junit and cactusJunit and cactus
Junit and cactus
 
Risk based testing and random testing
Risk based testing and random testingRisk based testing and random testing
Risk based testing and random testing
 
Testing a data warehouses
Testing a data warehousesTesting a data warehouses
Testing a data warehouses
 
Software testing tools and its taxonomy
Software testing tools and its taxonomySoftware testing tools and its taxonomy
Software testing tools and its taxonomy
 
Software reliability engineering process
Software reliability engineering processSoftware reliability engineering process
Software reliability engineering process
 
Software reliability growth model
Software reliability growth modelSoftware reliability growth model
Software reliability growth model
 
Software reliability tools and common software errors
Software reliability tools and common software errorsSoftware reliability tools and common software errors
Software reliability tools and common software errors
 
Regression and performance testing
Regression and performance testingRegression and performance testing
Regression and performance testing
 
Eleven step of software testing process
Eleven step of software testing processEleven step of software testing process
Eleven step of software testing process
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

White box black box & gray box testing

  • 1. White Box ,Black Box & Gray Box Testing Dr. Himanshu Hora SRMS College of Engineering & Technology Bareilly (INDIA)
  • 2. 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
  • 3. 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
  • 4.
  • 5. Advantages of white box testing • It becomes very easy to find out which type of data can help in testing the application effectively • It helps in optimizing the code • Extra lines of code can be removed which can be bring in hidden defects • Due to the tester’s knowledge about the code , maximum coverage is attained during test scenario writing
  • 6. Disadvantages of white box testing • Due to the fact that a skilled tester is needed to perform white box testing, the costs are increased • Sometimes it is impossible to look into every corner to find out hidden errors that may create problems as many paths will go untested • It is difficult to maintain white box testing as the use of specialized tools like code analyzers and debugging tools are required.
  • 7. Black Box Testing • 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 • This method of test can be applied to virtually every level of software testing : unit , integration , system , and acceptance
  • 8. Cont… • The tester is oblivious to the system architecture and does not have access to the source code • 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
  • 9.
  • 10. Advantages of black box testing • Well suited and efficient for large code segments • Code Access not required • Clearly separates user's perspective from the developer's perspective through visibly defined roles • Large numbers of moderately skilled testers can test the application with no knowledge of implementation, programming language or operating systems
  • 11. Disadvantages of black box testing • Limited Coverage since only a selected number of test scenarios are actually performed • Inefficient testing, due to the fact that the tester only has limited knowledge about an application • Blind Coverage, since the tester cannot target specific code segments or error prone areas The test cases are difficult to design
  • 12. 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
  • 13. Cont… • Gray-box testing is beneficial because it takes the straightforward technique of black-box testing and combines it with the code targeted systems in whitebox testing
  • 14. Advantages of Gray box testing • Offers combined benefits of black box and white box testing wherever possible • Grey box testers don't rely on the source code; instead they rely on interface definition and functional specifications • Based on the limited information available, a grey box tester can design excellent test scenarios especially around communication protocols and data type handling • The test is done from the point of view of the user and not the designer
  • 15. Disadvantages of gray box testing • Since the access to source code is not available, the ability to go over the code and test coverage is limited. • The tests can be redundant if the software designer has already run a test case. • Testing every possible input stream is unrealistic because it would take an unreasonable amount of time; therefore, many program paths will go untested.
  • 16. Black Box vs. Gray Box vs. White Box S . No Black box Gray box White box 1 The Internal Workings Somewhat knowledge of an application are of the internal not required to be workings are known known Tester has full knowledge of the Internal workings of the application 2 Also known as closed box testing, data driven testing and functional testing Another term for grey box testing is translucent testing as the tester has limited knowledge of the insides of the application Also known as clear box testing, structural testing or code based testing 3 Performed by end users and also by testers and developers Performed by end Normally done by users and also by testers and developers testers and developers 4 Testing is based on external expectations Internal behavior of the application is unknown Testing is done on the basis of high level database diagrams and data flow diagrams Internal workings are fully known and the tester can design test data accordingly
  • 17. Thank You Dr. Himanshu Hora SRMS College of Engineering & Technology Bareilly (INDIA)