SlideShare a Scribd company logo
Software engineering
SOFTWARE
ENGINEERING
WHITE BOX TESTING
Presented by: Aurangzeb
12BS(cs)27
Department of Computer Sciences-QUEST
Table of Contents




White Box testing---Introduction
WBT vs BBT----------pictural representation
Explanations








WBT Techniques

Formal Examples
Real life examples
Advantages and Disadvantages of WBT
Summary
References
12BSCS27 Monday, December 02, 2013
What is White Box Testing?
(WBT)




White box testing is a process of testing a source
code again and again to check and correct the
bugs present in any code.
White-box testing (also known as clear box
testing, glass box testing, transparent box
testing, and structural testing) is a method of
testing software that tests internal structures or
workings of an application, as opposed to its
functionality (i.e. black-box testing).
12BSCS27

Monday, December 02, 2013
white-box testing (IEEE-1990)


Testing that takes into account the internal
mechanism of a system or components.
 (IEEE-1990)

12BSCS27

Monday, December 02, 2013
BBT vs WBT

12BSCS27

Monday, December 02, 2013
Explanations;




white-box testing an internal perspective of the
system, as well as programming skills, are used to
design test cases. The tester chooses inputs to
exercise paths through the code and determine the
appropriate outputs. This is analogous to testing
nodes in a circuit, e.g. in-circuit testing (ICT).
White Box Testing (WBT) is also known as CodeBased Testing or Structural Testing. White box testing
is the software testing method in which internal
structure is being known to tester who is going to test
12BSCS27 Monday, December 02, 2013
the software.
Continued…






white-box testing can be applied at
the unit, integration and system levels of
the software testing process, it is usually done at
the unit level.
It can test paths within a unit, paths between units
during integration, and between subsystems
during a system–level test.
Though this method of test design can uncover
many errors or problems, it might not detect
unimplemented parts of the specification or
12BSCS27 Monday, December 02, 2013
missing requirements.
Example;

12BSCS27

Monday, December 02, 2013
12BSCS27

Monday, December 02, 2013
What do you verify in White Box
Testing ?


In the White box testing following steps are executed
to test the software code:







Basically verify the security holes in the code.
Verify the broken or incomplete paths in the code.
Verify the flow of structure mention in the specification
document
Verify the Expected outputs.
Verify the all conditional loops in the code to check the
complete functionality of the application.
Verify the line by line or Section by Section in the code &
12BSCS27 Monday, December 02, 2013
cover the 100% testing.
WBT Techniques;
White-box test design techniques include:
 Control

flow testing
 Data flow testing
 Branch testing
 Path testing
 Statement coverage
 Decision coverage
12BSCS27

Monday, December 02, 2013
Terminologies using WBT;






White-box testing's basic procedures involve the
understanding of the source code that you are testing
at a deep level to be able to test them
The programmer must have a deep understanding of
the application to know what kinds of test cases to
create so that every visible path is exercised for
testing.
Once the source code is understood then the source
code can be analyzed for test cases to be created.
These are the three basic steps that white-box testing
takes in order to create test cases:
12BSCS27

Monday, December 02, 2013
Continued…
Input, involves different types of requirements, functional
specifications, detailed designing of documents, proper
source code, security specifications. This is the preparation
stage of white-box testing to layout all of the basic
information.
 Processing Unit, involves performing risk analysis to guide
whole testing process, proper test plan, execute test cases
and communicate results. This is the phase of building test
cases to make sure they thoroughly test the application the
given results are recorded accordingly.
 Output, prepare final report that encompasses all of the
above preparations and results.


12BSCS27

Monday, December 02, 2013
Advantages of WBT;


White-box testing is one of the two biggest testing
methodologies used today. It primarily has three advantages:
 Side effects of having the knowledge of the source code is
beneficial to thorough testing.
 Optimization of code by revealing hidden errors and being
able to remove these possible defects.
 Gives the programmer introspection because developers
carefully describe any new implementation.

12BSCS27

Monday, December 02, 2013
Disadvantages of WBT;


Although White-box testing has great advantages, it is not
perfect and contains some disadvantages. It has two
disadvantages:
 White-box testing brings complexity to testing because to be
able to test every important aspect of the program, you must
have great knowledge of the program. White-box testing
requires a programmer with a high-level of knowledge due to
the complexity of the level of testing that needs to be done.
 On some occasions, it is not realistic to be able to test every
single existing condition of the application and some
conditions will be untested.
12BSCS27 Monday, December 02, 2013
Summary;


White-box testing is a method of testing the
application at the level of the source code. The
test cases are derived through the use of the
design techniques mentioned above: control
flow testing, data flow testing, branch testing, path
testing, statement coverage and decision
coverage as well as modified condition/decision
coverage. White-box testing is the use of these
techniques as guidelines to create an error free
environment by examining any fragile code.
12BSCS27

Monday, December 02, 2013
White Box – summary;











Statement testing
uses a model of the program’s control flow
it is designed in order to execute all or selected statements of the test
object
Branch/Decision Testing
uses a model of the program’s flow
it is designed in order to execute (each) outcome of all or selected decision
points in a test object
Branch Condition Combination
uses a model of the program flow where each combination of the inputs for
a decision/condition must be tested, in order to check if each branch is
covered
12BSCS27

Monday, December 02, 2013
References;










http://en.wikipedia.org/wiki/White-box_testing
http://www.chaudhary.org/WhiteBox.pdf
http://www.sersc.org/journals/IJSEIA/vol5_no3_2011/1
.pdf
http://ijcsi.org/papers/7-3-1-11-16.pdf
http://www.4shared.com/get/yCrequN8/Software_engi
neering_book.html
http://www.softwaretestingclass.com/white-boxtesting/
12BSCS27

Monday, December 02, 2013
12BSCS27

Monday, December 02, 2013

More Related Content

PPT
Gray box testing
PPTX
WHITE BOX & BLACK BOX TESTING IN DATABASE
PPTX
White box black box & gray box testing
PPTX
Se (techniques for black box testing ppt)
PPTX
Black Box Testing
PDF
Black Box Testing
PPT
Testing, black ,white and gray box testing
PPTX
GrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
Gray box testing
WHITE BOX & BLACK BOX TESTING IN DATABASE
White box black box & gray box testing
Se (techniques for black box testing ppt)
Black Box Testing
Black Box Testing
Testing, black ,white and gray box testing
GrayBox Testing and Crud Testing By: Er. Priyanka Pradhan

What's hot (20)

PPTX
White box testing
PPTX
Software testing
PPTX
5 black box and grey box testing
PDF
Black-Box
PPT
Black box and white box testing
PPT
Black box testing lecture 11
PPTX
Black box software testing
PPT
White boxvsblackbox
PPT
Chapter 14 software testing techniques
PDF
SE2018_Lec 15_ Software Design
DOC
Black box testing
PPT
Dynamic analysis in Software Testing
PDF
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
PPTX
Introduction to White box testing
PPTX
Black box testing or behavioral testing
PPTX
Test design techniques
PPT
Black box testing
PDF
Test cases
PDF
Test Case, Use Case and Test Scenario
PPTX
Blackbox
White box testing
Software testing
5 black box and grey box testing
Black-Box
Black box and white box testing
Black box testing lecture 11
Black box software testing
White boxvsblackbox
Chapter 14 software testing techniques
SE2018_Lec 15_ Software Design
Black box testing
Dynamic analysis in Software Testing
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
Introduction to White box testing
Black box testing or behavioral testing
Test design techniques
Black box testing
Test cases
Test Case, Use Case and Test Scenario
Blackbox
Ad

Similar to Software engineering (20)

PPTX
oose ppt white box testing and black box
PPTX
BLACK BOX & WHITE BOX TESTING.pptx
PPTX
White-box testing.pptx
PPT
blackboxandwhiteboxtesting in software testing.ppt
PPTX
Whitebox Testing,Types,Different techniques
PPT
CS8494 SOFTWARE ENGINEERING Unit-4
PPTX
WHITE BOX TESTING ashu.pptx
PPTX
White Box Testing
PPTX
White box testing
PPTX
white box and black box testing in software engineering
PPT
Testing chapter updated (1)
PPTX
SOFTWARE TESTING.pptx
PPTX
Software_Testing_Techniques_undergraduate.pptx
PPTX
White box testing
PPTX
White Box Testing
PPTX
System Testing.pptx
PPTX
ScioTalks | Coverage Based Testing
PDF
Understanding White Box and Black Box Testing
PPTX
White box & black box testing
oose ppt white box testing and black box
BLACK BOX & WHITE BOX TESTING.pptx
White-box testing.pptx
blackboxandwhiteboxtesting in software testing.ppt
Whitebox Testing,Types,Different techniques
CS8494 SOFTWARE ENGINEERING Unit-4
WHITE BOX TESTING ashu.pptx
White Box Testing
White box testing
white box and black box testing in software engineering
Testing chapter updated (1)
SOFTWARE TESTING.pptx
Software_Testing_Techniques_undergraduate.pptx
White box testing
White Box Testing
System Testing.pptx
ScioTalks | Coverage Based Testing
Understanding White Box and Black Box Testing
White box & black box testing
Ad

Recently uploaded (20)

PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Lesson notes of climatology university.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Institutional Correction lecture only . . .
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Cell Types and Its function , kingdom of life
PDF
Computing-Curriculum for Schools in Ghana
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Complications of Minimal Access Surgery at WLH
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
O7-L3 Supply Chain Operations - ICLT Program
Pharmacology of Heart Failure /Pharmacotherapy of CHF
A systematic review of self-coping strategies used by university students to ...
Lesson notes of climatology university.
Module 4: Burden of Disease Tutorial Slides S2 2025
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Institutional Correction lecture only . . .
O5-L3 Freight Transport Ops (International) V1.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Types and Its function , kingdom of life
Computing-Curriculum for Schools in Ghana
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Anesthesia in Laparoscopic Surgery in India
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Complications of Minimal Access Surgery at WLH

Software engineering

  • 2. SOFTWARE ENGINEERING WHITE BOX TESTING Presented by: Aurangzeb 12BS(cs)27 Department of Computer Sciences-QUEST
  • 3. Table of Contents    White Box testing---Introduction WBT vs BBT----------pictural representation Explanations       WBT Techniques Formal Examples Real life examples Advantages and Disadvantages of WBT Summary References 12BSCS27 Monday, December 02, 2013
  • 4. What is White Box Testing? (WBT)   White box testing is a process of testing a source code again and again to check and correct the bugs present in any code. White-box testing (also known as clear box testing, glass box testing, transparent box testing, and structural testing) is a method of testing software that tests internal structures or workings of an application, as opposed to its functionality (i.e. black-box testing). 12BSCS27 Monday, December 02, 2013
  • 5. white-box testing (IEEE-1990)  Testing that takes into account the internal mechanism of a system or components.  (IEEE-1990) 12BSCS27 Monday, December 02, 2013
  • 6. BBT vs WBT 12BSCS27 Monday, December 02, 2013
  • 7. Explanations;   white-box testing an internal perspective of the system, as well as programming skills, are used to design test cases. The tester chooses inputs to exercise paths through the code and determine the appropriate outputs. This is analogous to testing nodes in a circuit, e.g. in-circuit testing (ICT). White Box Testing (WBT) is also known as CodeBased Testing or Structural Testing. White box testing is the software testing method in which internal structure is being known to tester who is going to test 12BSCS27 Monday, December 02, 2013 the software.
  • 8. Continued…    white-box testing can be applied at the unit, integration and system levels of the software testing process, it is usually done at the unit level. It can test paths within a unit, paths between units during integration, and between subsystems during a system–level test. Though this method of test design can uncover many errors or problems, it might not detect unimplemented parts of the specification or 12BSCS27 Monday, December 02, 2013 missing requirements.
  • 11. What do you verify in White Box Testing ?  In the White box testing following steps are executed to test the software code:       Basically verify the security holes in the code. Verify the broken or incomplete paths in the code. Verify the flow of structure mention in the specification document Verify the Expected outputs. Verify the all conditional loops in the code to check the complete functionality of the application. Verify the line by line or Section by Section in the code & 12BSCS27 Monday, December 02, 2013 cover the 100% testing.
  • 12. WBT Techniques; White-box test design techniques include:  Control flow testing  Data flow testing  Branch testing  Path testing  Statement coverage  Decision coverage 12BSCS27 Monday, December 02, 2013
  • 13. Terminologies using WBT;    White-box testing's basic procedures involve the understanding of the source code that you are testing at a deep level to be able to test them The programmer must have a deep understanding of the application to know what kinds of test cases to create so that every visible path is exercised for testing. Once the source code is understood then the source code can be analyzed for test cases to be created. These are the three basic steps that white-box testing takes in order to create test cases: 12BSCS27 Monday, December 02, 2013
  • 14. Continued… Input, involves different types of requirements, functional specifications, detailed designing of documents, proper source code, security specifications. This is the preparation stage of white-box testing to layout all of the basic information.  Processing Unit, involves performing risk analysis to guide whole testing process, proper test plan, execute test cases and communicate results. This is the phase of building test cases to make sure they thoroughly test the application the given results are recorded accordingly.  Output, prepare final report that encompasses all of the above preparations and results.  12BSCS27 Monday, December 02, 2013
  • 15. Advantages of WBT;  White-box testing is one of the two biggest testing methodologies used today. It primarily has three advantages:  Side effects of having the knowledge of the source code is beneficial to thorough testing.  Optimization of code by revealing hidden errors and being able to remove these possible defects.  Gives the programmer introspection because developers carefully describe any new implementation. 12BSCS27 Monday, December 02, 2013
  • 16. Disadvantages of WBT;  Although White-box testing has great advantages, it is not perfect and contains some disadvantages. It has two disadvantages:  White-box testing brings complexity to testing because to be able to test every important aspect of the program, you must have great knowledge of the program. White-box testing requires a programmer with a high-level of knowledge due to the complexity of the level of testing that needs to be done.  On some occasions, it is not realistic to be able to test every single existing condition of the application and some conditions will be untested. 12BSCS27 Monday, December 02, 2013
  • 17. Summary;  White-box testing is a method of testing the application at the level of the source code. The test cases are derived through the use of the design techniques mentioned above: control flow testing, data flow testing, branch testing, path testing, statement coverage and decision coverage as well as modified condition/decision coverage. White-box testing is the use of these techniques as guidelines to create an error free environment by examining any fragile code. 12BSCS27 Monday, December 02, 2013
  • 18. White Box – summary;         Statement testing uses a model of the program’s control flow it is designed in order to execute all or selected statements of the test object Branch/Decision Testing uses a model of the program’s flow it is designed in order to execute (each) outcome of all or selected decision points in a test object Branch Condition Combination uses a model of the program flow where each combination of the inputs for a decision/condition must be tested, in order to check if each branch is covered 12BSCS27 Monday, December 02, 2013

Editor's Notes

  • #2: Start with the name of ALLAH who is the most mercifull and benificient….
  • #3: A presentaion truly based on the ideas of white box testing by Aurangzeb
  • #4: Table of contents
  • #5: Introduction to WBT
  • #7: WBT vs BBT