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

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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
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
 

Recently uploaded (20)

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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
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
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 

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)