SlideShare a Scribd company logo
2
Most read
3
Most read
9
Most read
Structural Testing
                                    Saranya.V
                                      AP/CSE,
Sri Vidya College of Engineering & Technology,
                                 Virudhunagar
Test cases based upon the structure of the
  code under testing.
Stronger than other testing methodologies.
Complementary Testing:
Testing strategy (A) detects some errors.
Testing strategy (B) detects some more errors
  which is uncovered by (A). This is known as
  complementary testing strategy.
Categories of Structural Testing
Statement Coverage
Path Coverage
Branch Coverage
Condition Coverage
1. Statement Coverage
 Weakest form of testing.
 Because this kind of
   testing requires that     Begin
   every statement in the
   code has been executed
   at least once.                     yes
Ex:                          Y>=0       Y=0-y
Begin
If(y>= 0) then y=0-y;                No

Abc=y;                       Abc=y
end
2. Branch Coverage
Test cases are generated to test each branch
 condition assume true or false values in turn.
Also known as Edge Testing.
Edge of the programs control flow graph is
 traversed at least once.
These kind of test cases checks Branches of
 decision box.
Structural testing
3. Condition Coverage Testing
• Check all possible
  combinations        of   IF ("X && Y")
  conditions.
• While           branch   TEST 1: X=TRUE,
  coverage is stronger
  than        statement                Y=FALSE
  coverage, its not        TEST 2: X=FALSE,
  suitable for multiple                Y=TRUE
  conditions checking.
• Example: “if (A or B)” requires 4 test cases:
     A = True, B = True
     A = True, B = False
     A = False, B = True
     A = False, B = False
4. Path Coverage Testing
 Paths in the program executed
  at least once.                         1          2

 Independent path can be                    P1 F
                                     T
  defined in terms of CFG.
 White box testing is used here.
                                             P2 F
 Test the each independent path.    T

 But this process will be complex
  one when the loop occurs.

More Related Content

PPTX
Se (techniques for black box testing ppt)
PDF
INTEGRATION TESTING
PPTX
Software Testing or Quality Assurance
PPTX
Integration testing
PPTX
Unit 2 - Test Case Design
PPTX
System testing
PPTX
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
PDF
Black Box Testing
Se (techniques for black box testing ppt)
INTEGRATION TESTING
Software Testing or Quality Assurance
Integration testing
Unit 2 - Test Case Design
System testing
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Black Box Testing

What's hot (20)

PPTX
Software testing.ppt
PPTX
White box testing
PPTX
Test case techniques
ODP
White box ppt
PPT
Software Testing
PPT
PDF
What is Integration Testing? | Edureka
PPTX
Black box software testing
PPTX
Software testing principles
PPT
Test Levels & Techniques
PPT
Path testing, data flow testing
PPTX
Software testing
PDF
Software testing methods, levels and types
PPT
Introduction to Compiler Construction
PPTX
Unit 1 defects classes
PDF
Test Case, Use Case and Test Scenario
PPTX
Decision Table Based Testing
PPTX
software maintenance
PPTX
formal verification
PPT
Black box & white-box testing technique
Software testing.ppt
White box testing
Test case techniques
White box ppt
Software Testing
What is Integration Testing? | Edureka
Black box software testing
Software testing principles
Test Levels & Techniques
Path testing, data flow testing
Software testing
Software testing methods, levels and types
Introduction to Compiler Construction
Unit 1 defects classes
Test Case, Use Case and Test Scenario
Decision Table Based Testing
software maintenance
formal verification
Black box & white-box testing technique
Ad

Viewers also liked (20)

PPTX
Structural and functional testing
PDF
Functional testing patterns
PPTX
functional testing
PPT
Software Testing Techniques
PDF
Chapter 8 software testing
PPTX
PPT
Types of Software Testing
PPT
Software Testing Fundamentals
PPTX
Software testing ppt
PPTX
Software configuration items
PDF
Code Complexity 101
PPTX
Boundary value analysis and equivalence partitioning
PPTX
EquivalencePartition
PDF
Measuring maintainability; software metrics explained
PPTX
Introduzione al Testing
PPT
Equivalence partitions analysis
PDF
Black box testing (an introduction to)
PPTX
Software Configuration Management
PDF
Using cyclomatic complexity to measure code complexity
PDF
Test Funzionale
Structural and functional testing
Functional testing patterns
functional testing
Software Testing Techniques
Chapter 8 software testing
Types of Software Testing
Software Testing Fundamentals
Software testing ppt
Software configuration items
Code Complexity 101
Boundary value analysis and equivalence partitioning
EquivalencePartition
Measuring maintainability; software metrics explained
Introduzione al Testing
Equivalence partitions analysis
Black box testing (an introduction to)
Software Configuration Management
Using cyclomatic complexity to measure code complexity
Test Funzionale
Ad

Similar to Structural testing (20)

PPTX
Software Testing Foundations Part 5 - White Box Testing
PPT
11 whiteboxtesting
PPT
Whitebox testing
PPTX
whiteboxtestingppt download here information on software.pptx
PPTX
Sta unit 4(abimanyu)
PPT
white box testing.ppt
PPT
2. Lect 27 to 28 White box s/w testing.ppt
PPS
Testing techniques
PPTX
White Box Testing And Control Flow & Loop Testing
PDF
ST Module 3 vtu prescribed syllabus and scheme
PDF
White Box Testing (Introduction to)
PPTX
Test design techniques: Structured and Experienced-based techniques
PPT
Whitebox
PDF
Tools and techniques of code coverage testing
PPTX
ScioTalks | Coverage Based Testing
PPTX
White Box Testing
PDF
Software Engineering : Software testing
PPT
Unit 2 Unit level testing.ppt
PDF
Lecture 06 - 07 - 08 - Test Techniques - Whitebox Testing.pdf
PPT
AutoTest for software engineering for automated testing
Software Testing Foundations Part 5 - White Box Testing
11 whiteboxtesting
Whitebox testing
whiteboxtestingppt download here information on software.pptx
Sta unit 4(abimanyu)
white box testing.ppt
2. Lect 27 to 28 White box s/w testing.ppt
Testing techniques
White Box Testing And Control Flow & Loop Testing
ST Module 3 vtu prescribed syllabus and scheme
White Box Testing (Introduction to)
Test design techniques: Structured and Experienced-based techniques
Whitebox
Tools and techniques of code coverage testing
ScioTalks | Coverage Based Testing
White Box Testing
Software Engineering : Software testing
Unit 2 Unit level testing.ppt
Lecture 06 - 07 - 08 - Test Techniques - Whitebox Testing.pdf
AutoTest for software engineering for automated testing

More from Slideshare (20)

PPTX
Crystal report generation in visual studio 2010
PPTX
Report generation
PPT
Trigger
PPTX
Security in Relational model
PPTX
Entity Relationship Model
PPTX
PPTX
Major issues in data mining
PPTX
Data preprocessing
PPTX
What is in you
PPTX
Propositional logic & inference
PPTX
Logical reasoning 21.1.13
PPT
Logic agent
PPTX
Statistical learning
PPTX
Resolution(decision)
PPT
Reinforcement learning 7313
PPTX
Neural networks
PPTX
Instance based learning
PPTX
Statistical learning
PPTX
Neural networks
PPTX
Logical reasoning
Crystal report generation in visual studio 2010
Report generation
Trigger
Security in Relational model
Entity Relationship Model
Major issues in data mining
Data preprocessing
What is in you
Propositional logic & inference
Logical reasoning 21.1.13
Logic agent
Statistical learning
Resolution(decision)
Reinforcement learning 7313
Neural networks
Instance based learning
Statistical learning
Neural networks
Logical reasoning

Recently uploaded (20)

PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Institutional Correction lecture only . . .
PDF
RMMM.pdf make it easy to upload and study
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Types and Its function , kingdom of life
PDF
Pre independence Education in Inndia.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Lesson notes of climatology university.
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Classroom Observation Tools for Teachers
PDF
Basic Mud Logging Guide for educational purpose
VCE English Exam - Section C Student Revision Booklet
Supply Chain Operations Speaking Notes -ICLT Program
01-Introduction-to-Information-Management.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Pharma ospi slides which help in ospi learning
Institutional Correction lecture only . . .
RMMM.pdf make it easy to upload and study
Pharmacology of Heart Failure /Pharmacotherapy of CHF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Computing-Curriculum for Schools in Ghana
Cell Types and Its function , kingdom of life
Pre independence Education in Inndia.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Lesson notes of climatology university.
102 student loan defaulters named and shamed – Is someone you know on the list?
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Classroom Observation Tools for Teachers
Basic Mud Logging Guide for educational purpose

Structural testing

  • 1. Structural Testing Saranya.V AP/CSE, Sri Vidya College of Engineering & Technology, Virudhunagar
  • 2. Test cases based upon the structure of the code under testing. Stronger than other testing methodologies. Complementary Testing: Testing strategy (A) detects some errors. Testing strategy (B) detects some more errors which is uncovered by (A). This is known as complementary testing strategy.
  • 3. Categories of Structural Testing Statement Coverage Path Coverage Branch Coverage Condition Coverage
  • 4. 1. Statement Coverage  Weakest form of testing.  Because this kind of testing requires that Begin every statement in the code has been executed at least once. yes Ex: Y>=0 Y=0-y Begin If(y>= 0) then y=0-y; No Abc=y; Abc=y end
  • 5. 2. Branch Coverage Test cases are generated to test each branch condition assume true or false values in turn. Also known as Edge Testing. Edge of the programs control flow graph is traversed at least once. These kind of test cases checks Branches of decision box.
  • 7. 3. Condition Coverage Testing • Check all possible combinations of IF ("X && Y") conditions. • While branch TEST 1: X=TRUE, coverage is stronger than statement Y=FALSE coverage, its not TEST 2: X=FALSE, suitable for multiple Y=TRUE conditions checking.
  • 8. • Example: “if (A or B)” requires 4 test cases: A = True, B = True A = True, B = False A = False, B = True A = False, B = False
  • 9. 4. Path Coverage Testing  Paths in the program executed at least once. 1 2  Independent path can be P1 F T defined in terms of CFG.  White box testing is used here. P2 F  Test the each independent path. T  But this process will be complex one when the loop occurs.