SlideShare a Scribd company logo
3
Most read
5
Most read
9
Most read
K.Haripritha
II-MSc(Info Tech)
Nadar Saraswathi College of Arts and Science.
Theni
 Static analysis is used to investigate the structural
properties of source code.
 Dynamic test cases are used to investigate the behavior
of source code by executing the program on the test
data
 Unit testing comprises the set of tests performed by an
individual programmer prior to integration of the unit
into a larger system.
 The situation is illustrated as follows:
Coding & debugging- > unit testing
-> integration testing
 A program unit is usually small enough that the
programmer who developed it can test it in great detail,
and certainly in greater detail than will be possible
when the unit is integrated into an evolving software
product.
 There are four categories of tests programmer :
1. Functional tests
2. Performance tests
3. Stress tests
4. Structure tests
 FUNCTIONAL TEST:
 It cases involve exercising the code with
nominal input values for which the expected results are
known, as well as boundary values and special values.
 PERFORMANCE TEST:
 It determines the amount of execution time
spent in various parts of the unit, program throughput,
response time, and device utilization by the program
unit.
 STRESS TEST:
 It those tests designed to intentionally break
the unit. A great deal can be learned about the strengths
and limitations of a program by examining the manner
in which a program unit breaks.
 STRUCTURE TEST:
 It concerned with exercising the internal
logic of a program and traversing particular execution
paths.
 This can be seen by examining the program segment .
N P
0 2
1 4
2 8
10 2048
P =2N+ 1
 Debugging is the process of isolating and correcting
the causes of known errors. Success at debugging
requires highly developed problem-solving skills.
Commonly used debugging methods include :
induction,
deduction,
 backtracking (BR073, MYE79).
 Debugging by induction involves the
following steps:
1. Collect the available information.
2. Look for patterns.
3. Form one or more hypotheses
4. Prove or disprove each hypothesis.
5. Implement the appropriate corrections
6. Verify the correction.
 Debugging by deduction proceeds as follows:
1. List possible causes for the observed failure.
2. Use the available information to eliminate
various hypotheses.
3. Elaborate the remaining hypotheses.
4. Prove or disprove each hypothesis.
5. Determine the appropriate corrections.
6. Verify the corrections.
 Debugging by backtracking:
It involves working backward in the
source code from the point where the error was
observed in an attempt to identify the exact point where
the error occurred.
 Traditional debugging:
This techniques utilize diagnostic output
statements, snap-shot dumps, selective traces on data
values and control flow, and instruction-dependent
breakpoints. Modern debugging tools utilize assertion-
controlled breakpoints and execution histories.
THANK YOU

More Related Content

PPTX
Modules and modularization criteria
PPTX
Chapter 03 python libraries
PPTX
Unit testing
PDF
Meta AI Assistant to Roll-out on Major Social Media Sites
PPTX
Direct memory access (dma)
PPTX
Python Libraries and Modules
PPTX
UNIT TESTING PPT
PPTX
Design notation
Modules and modularization criteria
Chapter 03 python libraries
Unit testing
Meta AI Assistant to Roll-out on Major Social Media Sites
Direct memory access (dma)
Python Libraries and Modules
UNIT TESTING PPT
Design notation

What's hot (20)

PPTX
software cost factor
PPTX
Fundamental design concepts
PPTX
Language and Processors for Requirements Specification
PPTX
Staffing level estimation
PPTX
Phased life cycle model
PDF
Programming team structure
PPTX
Delphi cost estimation model
PPTX
Defining the Problem - Goals and requirements
PPTX
Software Cost Estimation Techniques
PPTX
Designing Techniques in Software Engineering
PPT
10 software maintenance
PPTX
Planning the development process
PPTX
Chapter 1 2 - some size factors
PPTX
Estimating Software Maintenance Costs
PPTX
Software Engineering
PPTX
Software requirements specification
PPTX
source code metrics and other maintenance tools and techniques
PDF
3. ch 2-process model
PPTX
Algorithmic Software Cost Modeling
PPTX
Design techniques
software cost factor
Fundamental design concepts
Language and Processors for Requirements Specification
Staffing level estimation
Phased life cycle model
Programming team structure
Delphi cost estimation model
Defining the Problem - Goals and requirements
Software Cost Estimation Techniques
Designing Techniques in Software Engineering
10 software maintenance
Planning the development process
Chapter 1 2 - some size factors
Estimating Software Maintenance Costs
Software Engineering
Software requirements specification
source code metrics and other maintenance tools and techniques
3. ch 2-process model
Algorithmic Software Cost Modeling
Design techniques
Ad

Similar to unit testing and debugging (20)

PDF
PPTX
PDF
International Journal of Engineering Research and Development (IJERD)
PPTX
Software testing
DOC
Chapter 7
PPTX
Testing &ampdebugging
PPTX
Ch 2 Apraoaches Of Software Testing
PPTX
White-box testing.pptx
PPTX
types of testing in software engineering
PPTX
Software testing
PPT
Object oriented sad 6
PPTX
Software testing
DOC
Testing
PDF
S440999102
PDF
SE2018_Lec 19_ Software Testing
PDF
Types and levels of testing chpter 2 (1).pdf
DOCX
SOFTWARE TESTING STRATEGIES:
PPTX
Object Oriented Testing
PDF
What is Unit Testing_ - A Complete Guide.pdf
International Journal of Engineering Research and Development (IJERD)
Software testing
Chapter 7
Testing &ampdebugging
Ch 2 Apraoaches Of Software Testing
White-box testing.pptx
types of testing in software engineering
Software testing
Object oriented sad 6
Software testing
Testing
S440999102
SE2018_Lec 19_ Software Testing
Types and levels of testing chpter 2 (1).pdf
SOFTWARE TESTING STRATEGIES:
Object Oriented Testing
What is Unit Testing_ - A Complete Guide.pdf
Ad

More from KarthigaGunasekaran1 (10)

PPTX
inheritance and polymorphism
PPTX
Hive and querying data
PPTX
Polymorphism and interface in vb.net
PPTX
Buffer management
PPTX
System testing
PPTX
Data mining techniques
PPTX
Operasting system service
PPTX
High level data link control
PPTX
Packages and interface
inheritance and polymorphism
Hive and querying data
Polymorphism and interface in vb.net
Buffer management
System testing
Data mining techniques
Operasting system service
High level data link control
Packages and interface

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Cell Types and Its function , kingdom of life
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Institutional Correction lecture only . . .
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Basic Mud Logging Guide for educational purpose
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Classroom Observation Tools for Teachers
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPH.pptx obstetrics and gynecology in nursing
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pre independence Education in Inndia.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharma ospi slides which help in ospi learning
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Cell Types and Its function , kingdom of life
STATICS OF THE RIGID BODIES Hibbelers.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Institutional Correction lecture only . . .
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Complications of Minimal Access Surgery at WLH
102 student loan defaulters named and shamed – Is someone you know on the list?
Abdominal Access Techniques with Prof. Dr. R K Mishra
Basic Mud Logging Guide for educational purpose
human mycosis Human fungal infections are called human mycosis..pptx
Anesthesia in Laparoscopic Surgery in India
Classroom Observation Tools for Teachers
Module 4: Burden of Disease Tutorial Slides S2 2025

unit testing and debugging

  • 1. K.Haripritha II-MSc(Info Tech) Nadar Saraswathi College of Arts and Science. Theni
  • 2.  Static analysis is used to investigate the structural properties of source code.  Dynamic test cases are used to investigate the behavior of source code by executing the program on the test data
  • 3.  Unit testing comprises the set of tests performed by an individual programmer prior to integration of the unit into a larger system.  The situation is illustrated as follows: Coding & debugging- > unit testing -> integration testing
  • 4.  A program unit is usually small enough that the programmer who developed it can test it in great detail, and certainly in greater detail than will be possible when the unit is integrated into an evolving software product.  There are four categories of tests programmer : 1. Functional tests 2. Performance tests 3. Stress tests 4. Structure tests
  • 5.  FUNCTIONAL TEST:  It cases involve exercising the code with nominal input values for which the expected results are known, as well as boundary values and special values.  PERFORMANCE TEST:  It determines the amount of execution time spent in various parts of the unit, program throughput, response time, and device utilization by the program unit.
  • 6.  STRESS TEST:  It those tests designed to intentionally break the unit. A great deal can be learned about the strengths and limitations of a program by examining the manner in which a program unit breaks.  STRUCTURE TEST:  It concerned with exercising the internal logic of a program and traversing particular execution paths.
  • 7.  This can be seen by examining the program segment . N P 0 2 1 4 2 8 10 2048 P =2N+ 1
  • 8.  Debugging is the process of isolating and correcting the causes of known errors. Success at debugging requires highly developed problem-solving skills. Commonly used debugging methods include : induction, deduction,  backtracking (BR073, MYE79).
  • 9.  Debugging by induction involves the following steps: 1. Collect the available information. 2. Look for patterns. 3. Form one or more hypotheses 4. Prove or disprove each hypothesis. 5. Implement the appropriate corrections 6. Verify the correction.
  • 10.  Debugging by deduction proceeds as follows: 1. List possible causes for the observed failure. 2. Use the available information to eliminate various hypotheses. 3. Elaborate the remaining hypotheses. 4. Prove or disprove each hypothesis. 5. Determine the appropriate corrections. 6. Verify the corrections.
  • 11.  Debugging by backtracking: It involves working backward in the source code from the point where the error was observed in an attempt to identify the exact point where the error occurred.  Traditional debugging: This techniques utilize diagnostic output statements, snap-shot dumps, selective traces on data values and control flow, and instruction-dependent breakpoints. Modern debugging tools utilize assertion- controlled breakpoints and execution histories.