SlideShare a Scribd company logo
1 of 15
STRUCTURAL
AND
FUNCTIONAL TESTING

Dr. Himanshu Hora
SRMS College of Engineering & Technology
Bareilly (INDIA)
CONTENTS







What is testing?
Goals of testing
Principles of Testing
Structural and Functional Testing
Types of Structural and Functional Testing
Limitations
TESTING
 According to the glossary of the IEEE
standardization , testing is defined as:
“The process of analyzing a software
item to detect the differences between existing
and required conditions (that is, bugs) and
to evaluate the features of
the software item”
GOALS OF TESTING
 Goal of testing:
finding faults in the software
producing a zero defect software
testing should be traceable
it should be deterministic
PRINCIPLES OF TESTING
 Test a program to try to make it fail
 Start testing early
Cont…
 Testing must be done by different persons at
different levels
Cont…
 Test a program innovatively
 Use both static and dynamic testing
STRUCTURAL TESTING
 Generates test cases based on the structure of
the program
 Also known as white box testing
 The internal structure of the program is taken
into account
FUNCTIONAL TESTING
 Generates test cases based on the functionality
of the software
 Also known as black box testing
 The internal structure of the program is hidden
from the testing process
Cont…
 Identify the functions which software is
expected to perform

 Treats the software as a "black box", examining
functionality without any knowledge of
internal implementation
TYPES OF STRUCTURAL
TESTING
 The different types of structural testing
are :
 Statement coverage: all statements in the
programs should be executed at least once
 Branch coverage: all branches in the
program should be executed at least once
Cont…

 Path coverage: all execution paths in the
program should be executed at lest once
 Conditional coverage: For conditional
branches, this means that, we execute the
TRUE branch at least once and the FALSE
branch at least once
TYPES OF FUNCTIONAL
TESTING
 The different types of functional testing are:


Equivalence class partitioning: In this
approach, the domain of input values to a
program is partitioned into a set of equivalent
classes



Boundary value analysis: It is the analysis of
the programming error that frequently occurs at
the boundaries of different equivalence classes of
inputs
LIMITATIONS
 Testing can be used to show the presence of
errors, but never to show their absence
 Software testing does not help in finding root
causes
 It can only identify the known issues or errors.
It gives no idea about defects still uncovered.
THANK YOU

Dr. Himanshu Hora
SRMS College of Engineering & Technology
Bareilly (INDIA)

More Related Content

What's hot

Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
Raghu Kiran
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
Confiz
 
System testing ppt
System testing pptSystem testing ppt
System testing ppt
L ESHWAR
 

What's hot (20)

Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
Types of testing
Types of testingTypes of testing
Types of testing
 
Software testing life cycle
Software testing life cycleSoftware testing life cycle
Software testing life cycle
 
Unit testing
Unit testing Unit testing
Unit testing
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Software Testing Techniques: An Overview
Software Testing Techniques: An Overview Software Testing Techniques: An Overview
Software Testing Techniques: An Overview
 
SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4  SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)
 
System testing ppt
System testing pptSystem testing ppt
System testing ppt
 
software testing
 software testing software testing
software testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Software testing
Software testingSoftware testing
Software testing
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | Edureka
 
Software Testing 101
Software Testing 101Software Testing 101
Software Testing 101
 

Viewers also liked (12)

Reliability and its principals
Reliability and its principalsReliability and its principals
Reliability and its principals
 
CBAM
 CBAM CBAM
CBAM
 
Architecture Review
Architecture ReviewArchitecture Review
Architecture Review
 
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
 
Abc
AbcAbc
Abc
 
Business analysis in data warehousing
Business analysis in data warehousingBusiness analysis in data warehousing
Business analysis in data warehousing
 
Saam
SaamSaam
Saam
 
Importance of software architecture
Importance of software architectureImportance of software architecture
Importance of software architecture
 
Structural patterns
Structural patternsStructural patterns
Structural patterns
 
Architecture business cycle
Architecture business cycleArchitecture business cycle
Architecture business cycle
 
Software archiecture lecture07
Software archiecture   lecture07Software archiecture   lecture07
Software archiecture lecture07
 
ATAM
ATAMATAM
ATAM
 

Similar to Structural and functional testing

Types of Software Testing
Types of Software TestingTypes of Software Testing
Types of Software Testing
Nishant Worah
 
Software testing sengu
Software testing  senguSoftware testing  sengu
Software testing sengu
Sengu Msc
 

Similar to Structural and functional testing (20)

White box & black box testing
White box & black box testingWhite box & black box testing
White box & black box testing
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software testing
Software testingSoftware testing
Software testing
 
Testing and types of Testing
Testing and types of TestingTesting and types of Testing
Testing and types of Testing
 
Software testing basic
Software testing basicSoftware testing basic
Software testing basic
 
Software Testing.pptx
Software Testing.pptxSoftware Testing.pptx
Software Testing.pptx
 
Software Teting
Software TetingSoftware Teting
Software Teting
 
Best software testing course
Best software testing courseBest software testing course
Best software testing course
 
Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
 
Types of Software Testing
Types of Software TestingTypes of Software Testing
Types of Software Testing
 
black and white Box testing.pptx
black and white Box testing.pptxblack and white Box testing.pptx
black and white Box testing.pptx
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Software testing sengu
Software testing  senguSoftware testing  sengu
Software testing sengu
 
unittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentunittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx document
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software testing
Software testingSoftware testing
Software testing
 
Coding and testing in Software Engineering
Coding and testing in Software EngineeringCoding and testing in Software Engineering
Coding and testing in Software Engineering
 
6 Common Types of Software Testing.pdf
6 Common Types of Software Testing.pdf6 Common Types of Software Testing.pdf
6 Common Types of Software Testing.pdf
 

More from Himanshu

More from 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
 
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
 
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
 
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
 
Off the-shelf components (cots)
Off the-shelf components (cots)Off the-shelf components (cots)
Off the-shelf components (cots)
 
Building a software testing environment
Building a software testing environmentBuilding a software testing environment
Building a software testing environment
 
Reconstructing Software Architecture
Reconstructing Software ArchitectureReconstructing Software Architecture
Reconstructing Software Architecture
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
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
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
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
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.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
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Structural and functional testing

  • 1. STRUCTURAL AND FUNCTIONAL TESTING Dr. Himanshu Hora SRMS College of Engineering & Technology Bareilly (INDIA)
  • 2. CONTENTS       What is testing? Goals of testing Principles of Testing Structural and Functional Testing Types of Structural and Functional Testing Limitations
  • 3. TESTING  According to the glossary of the IEEE standardization , testing is defined as: “The process of analyzing a software item to detect the differences between existing and required conditions (that is, bugs) and to evaluate the features of the software item”
  • 4. GOALS OF TESTING  Goal of testing: finding faults in the software producing a zero defect software testing should be traceable it should be deterministic
  • 5. PRINCIPLES OF TESTING  Test a program to try to make it fail  Start testing early
  • 6. Cont…  Testing must be done by different persons at different levels
  • 7. Cont…  Test a program innovatively  Use both static and dynamic testing
  • 8. STRUCTURAL TESTING  Generates test cases based on the structure of the program  Also known as white box testing  The internal structure of the program is taken into account
  • 9. FUNCTIONAL TESTING  Generates test cases based on the functionality of the software  Also known as black box testing  The internal structure of the program is hidden from the testing process
  • 10. Cont…  Identify the functions which software is expected to perform  Treats the software as a "black box", examining functionality without any knowledge of internal implementation
  • 11. TYPES OF STRUCTURAL TESTING  The different types of structural testing are :  Statement coverage: all statements in the programs should be executed at least once  Branch coverage: all branches in the program should be executed at least once
  • 12. Cont…  Path coverage: all execution paths in the program should be executed at lest once  Conditional coverage: For conditional branches, this means that, we execute the TRUE branch at least once and the FALSE branch at least once
  • 13. TYPES OF FUNCTIONAL TESTING  The different types of functional testing are:  Equivalence class partitioning: In this approach, the domain of input values to a program is partitioned into a set of equivalent classes  Boundary value analysis: It is the analysis of the programming error that frequently occurs at the boundaries of different equivalence classes of inputs
  • 14. LIMITATIONS  Testing can be used to show the presence of errors, but never to show their absence  Software testing does not help in finding root causes  It can only identify the known issues or errors. It gives no idea about defects still uncovered.
  • 15. THANK YOU Dr. Himanshu Hora SRMS College of Engineering & Technology Bareilly (INDIA)