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

What's hot

White box testing
White box testingWhite box testing
White box testing
Neethu Tressa
 
Software testing
Software testingSoftware testing
Software testing
Golu Gupta
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testing
Yisal Khan
 
Black-Box
Black-BoxBlack-Box
Black-Box
Jason Brown, PMP
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
AWADHESH PRATAP SINGH UNIVERSITY, REWA (M.P.)
 
Black box testing lecture 11
Black box testing lecture 11Black box testing lecture 11
Black box testing lecture 11
Abdul Basit
 
Black box software testing
Black box software testingBlack box software testing
Black box software testing
Rana Muhammad Asif
 
White boxvsblackbox
White boxvsblackboxWhite boxvsblackbox
White boxvsblackbox
sanerjjd
 
Chapter 14 software testing techniques
Chapter 14 software testing techniquesChapter 14 software testing techniques
Chapter 14 software testing techniques
SHREEHARI WADAWADAGI
 
SE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software DesignSE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software Design
Amr E. Mohamed
 
Black box testing
Black box testingBlack box testing
Black box testing
Nakul Sharma
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software Testing
Sagar Pednekar
 
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
Artemisa Yescas Engler
 
Introduction to White box testing
Introduction to White box testingIntroduction to White box testing
Introduction to White box testing
Aliaa Monier Ismaail
 
Black box testing or behavioral testing
Black box testing or behavioral testingBlack box testing or behavioral testing
Black box testing or behavioral testing
Slideshare
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
Mohamed Elshenawy
 
Black box testing
Black box testingBlack box testing
Black box testing
Abdul Basit
 
Test cases
Test casesTest cases
Test cases
Chandra Maddigapu
 
Test Case, Use Case and Test Scenario
Test Case, Use Case and Test ScenarioTest Case, Use Case and Test Scenario
Test Case, Use Case and Test Scenario
Lokesh Agrawal
 
Blackbox
BlackboxBlackbox
Blackbox
GuruKrishnaTeja
 

What's hot (20)

White box testing
White box testingWhite box testing
White box testing
 
Software testing
Software testingSoftware testing
Software testing
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testing
 
Black-Box
Black-BoxBlack-Box
Black-Box
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
 
Black box testing lecture 11
Black box testing lecture 11Black box testing lecture 11
Black box testing lecture 11
 
Black box software testing
Black box software testingBlack box software testing
Black box software testing
 
White boxvsblackbox
White boxvsblackboxWhite boxvsblackbox
White boxvsblackbox
 
Chapter 14 software testing techniques
Chapter 14 software testing techniquesChapter 14 software testing techniques
Chapter 14 software testing techniques
 
SE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software DesignSE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software Design
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software Testing
 
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
 
Introduction to White box testing
Introduction to White box testingIntroduction to White box testing
Introduction to White box testing
 
Black box testing or behavioral testing
Black box testing or behavioral testingBlack box testing or behavioral testing
Black box testing or behavioral testing
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Test cases
Test casesTest cases
Test cases
 
Test Case, Use Case and Test Scenario
Test Case, Use Case and Test ScenarioTest Case, Use Case and Test Scenario
Test Case, Use Case and Test Scenario
 
Blackbox
BlackboxBlackbox
Blackbox
 

Similar to Software engineering

Testing
TestingTesting
Testing
Mohammed
 
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
Homa Pourmohammadi
 
unittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentunittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx document
AkshayaM79
 
STesting (Unit-II).ppt
STesting (Unit-II).pptSTesting (Unit-II).ppt
STesting (Unit-II).ppt
SouravMohanty43
 
Paper 06
Paper 06Paper 06
Paper 06
Sunil Pandey
 
Unit testing - what is its importance
Unit testing - what is its importanceUnit testing - what is its importance
Unit testing - what is its importance
TestingXperts
 
UNIT testing
UNIT testingUNIT testing
UNIT testing
SKMohamedKasim
 
Software testing (2)
Software testing (2)Software testing (2)
Software testing (2)
dhanalakshmisai
 
blackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.pptblackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.ppt
suchita74
 
Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
Sophia Girls' College(Autonomous), Ajmer
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
Abdul Basit
 
Fundamental Test Design Techniques
Fundamental Test Design TechniquesFundamental Test Design Techniques
Fundamental Test Design Techniques
TechWell
 
Testing chapter updated (1)
Testing chapter updated (1)Testing chapter updated (1)
Testing chapter updated (1)
abdullah619
 
Chapter 8 Testing Tactics.ppt
Chapter 8 Testing Tactics.pptChapter 8 Testing Tactics.ppt
Chapter 8 Testing Tactics.ppt
VijayaPratapReddyM
 
Software Testing - Day Two
Software Testing - Day TwoSoftware Testing - Day Two
Software Testing - Day Two
Govardhan Reddy
 
Chapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineeringChapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineering
AnasHassan52
 
Testing Throughout the Software Life Cycle - Section 2
Testing Throughout the Software Life Cycle - Section 2Testing Throughout the Software Life Cycle - Section 2
Testing Throughout the Software Life Cycle - Section 2
International Personal Finance Plc
 
ST_final (2).docx
ST_final (2).docxST_final (2).docx
ST_final (2).docx
LakshmishaRALakshmis
 
Testing
TestingTesting
Black & White Box testing
Black & White Box testingBlack & White Box testing

Similar to Software engineering (20)

Testing
TestingTesting
Testing
 
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
 
unittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentunittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx document
 
STesting (Unit-II).ppt
STesting (Unit-II).pptSTesting (Unit-II).ppt
STesting (Unit-II).ppt
 
Paper 06
Paper 06Paper 06
Paper 06
 
Unit testing - what is its importance
Unit testing - what is its importanceUnit testing - what is its importance
Unit testing - what is its importance
 
UNIT testing
UNIT testingUNIT testing
UNIT testing
 
Software testing (2)
Software testing (2)Software testing (2)
Software testing (2)
 
blackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.pptblackboxandwhiteboxtesting in software testing.ppt
blackboxandwhiteboxtesting in software testing.ppt
 
Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Fundamental Test Design Techniques
Fundamental Test Design TechniquesFundamental Test Design Techniques
Fundamental Test Design Techniques
 
Testing chapter updated (1)
Testing chapter updated (1)Testing chapter updated (1)
Testing chapter updated (1)
 
Chapter 8 Testing Tactics.ppt
Chapter 8 Testing Tactics.pptChapter 8 Testing Tactics.ppt
Chapter 8 Testing Tactics.ppt
 
Software Testing - Day Two
Software Testing - Day TwoSoftware Testing - Day Two
Software Testing - Day Two
 
Chapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineeringChapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineering
 
Testing Throughout the Software Life Cycle - Section 2
Testing Throughout the Software Life Cycle - Section 2Testing Throughout the Software Life Cycle - Section 2
Testing Throughout the Software Life Cycle - Section 2
 
ST_final (2).docx
ST_final (2).docxST_final (2).docx
ST_final (2).docx
 
Testing
TestingTesting
Testing
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 

Recently uploaded

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 

Recently uploaded (20)

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 

Software engineering

  • 1.
  • 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

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