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

PPT
Software Quality Metrics
Mufaddal Nullwala
 
PDF
Software Engineering : OOAD using UML
Ajit Nayak
 
PPTX
verification and validation
Dinesh Pasi
 
PPTX
System testing
Sifat Hossain
 
PPTX
Software Measurement and Metrics.pptx
ubaidullah75790
 
PPTX
Software Metrics - Software Engineering
Drishti Bhalla
 
PPTX
Software Engineering
janani thirupathi
 
PPTX
Modules and modularization criteria
Umaselvi_R
 
Software Quality Metrics
Mufaddal Nullwala
 
Software Engineering : OOAD using UML
Ajit Nayak
 
verification and validation
Dinesh Pasi
 
System testing
Sifat Hossain
 
Software Measurement and Metrics.pptx
ubaidullah75790
 
Software Metrics - Software Engineering
Drishti Bhalla
 
Software Engineering
janani thirupathi
 
Modules and modularization criteria
Umaselvi_R
 

What's hot (20)

PPTX
Designing Techniques in Software Engineering
kirupasuchi1996
 
PPTX
Language and Processors for Requirements Specification
kirupasuchi1996
 
PPTX
Planning the development process
Siva Priya
 
PPTX
Chapter 1 2 - some size factors
NancyBeaulah_R
 
PPTX
Real time and distributed design
priyapavi96
 
PPTX
Software Cost Estimation Techniques
Santhi thi
 
PPTX
Estimating Software Maintenance Costs
lalithambiga kamaraj
 
PPTX
Software requirements specification
lavanya marichamy
 
PPTX
Some Size factors in software engineering
V.V.Vanniaperumal College for Women
 
PPTX
software cost factor
Abinaya B
 
PDF
Programming team structure
NancyBeaulah_R
 
PPTX
source code metrics and other maintenance tools and techniques
Siva Priya
 
PPTX
Phased life cycle model
Stephennancy
 
PPTX
Design notation
ramya marichamy
 
PPT
Software Metrics
swatisinghal
 
PPTX
Quality and productivity factors
NancyBeaulah_R
 
PPTX
Checkpoints of the Process
Munazza-Mah-Jabeen
 
PPTX
Staffing level estimation
kavitha muneeshwaran
 
PPTX
formal verification
Toseef Aslam
 
PDF
Software Cost Estimation Techniques
MohamedIbrahim1408
 
Designing Techniques in Software Engineering
kirupasuchi1996
 
Language and Processors for Requirements Specification
kirupasuchi1996
 
Planning the development process
Siva Priya
 
Chapter 1 2 - some size factors
NancyBeaulah_R
 
Real time and distributed design
priyapavi96
 
Software Cost Estimation Techniques
Santhi thi
 
Estimating Software Maintenance Costs
lalithambiga kamaraj
 
Software requirements specification
lavanya marichamy
 
Some Size factors in software engineering
V.V.Vanniaperumal College for Women
 
software cost factor
Abinaya B
 
Programming team structure
NancyBeaulah_R
 
source code metrics and other maintenance tools and techniques
Siva Priya
 
Phased life cycle model
Stephennancy
 
Design notation
ramya marichamy
 
Software Metrics
swatisinghal
 
Quality and productivity factors
NancyBeaulah_R
 
Checkpoints of the Process
Munazza-Mah-Jabeen
 
Staffing level estimation
kavitha muneeshwaran
 
formal verification
Toseef Aslam
 
Software Cost Estimation Techniques
MohamedIbrahim1408
 
Ad

Similar to unit testing and debugging (20)

PPTX
Testing &ampdebugging
rajshreemuthiah
 
PDF
Debugging in Software Engineering SE Unit-4 Part-6.pdf
iron57441
 
PPTX
Debbuging
Iama Marsian
 
PPTX
White box testing
Neethu Tressa
 
PPTX
Software Testing
Prof .Pragati Khade
 
PPTX
The Art of Debugging.pptx
KarthigaiSelviS3
 
PPTX
Principles in software debugging
Pipat Methavanitpong
 
PPTX
Debugging (Part 2)
Ajeng Savitri
 
PPTX
Software testing (2)
dhanalakshmisai
 
PPTX
Presentation on debugging
swati kushwaha
 
PPTX
types of testing in software engineering
preetikapri1
 
PPT
debugging (1).ppt
jerlinS1
 
PPT
An important characteristic of a test suite that is computed by a dynamic ana...
jeyasrig
 
PPTX
Debugging Presentation Rehman Ali.pptx
RehmanAli69
 
PPT
Verifcation &validation
ssusere50573
 
PPT
01SoftwEng.pptInnovation technology pptInnovation technology ppt
sultanahimed3
 
PPT
PHP - Introduction to PHP Bugs - Debugging
Vibrant Technologies & Computers
 
PPT
Software testing definition
Hiro Mia
 
PDF
st-notes-13-26-software-testing-is-the-act-of-examining-the-artifacts-and-the...
mwpeexdvjgtqujwhog
 
PPTX
Software testing
Aman Adhikari
 
Testing &ampdebugging
rajshreemuthiah
 
Debugging in Software Engineering SE Unit-4 Part-6.pdf
iron57441
 
Debbuging
Iama Marsian
 
White box testing
Neethu Tressa
 
Software Testing
Prof .Pragati Khade
 
The Art of Debugging.pptx
KarthigaiSelviS3
 
Principles in software debugging
Pipat Methavanitpong
 
Debugging (Part 2)
Ajeng Savitri
 
Software testing (2)
dhanalakshmisai
 
Presentation on debugging
swati kushwaha
 
types of testing in software engineering
preetikapri1
 
debugging (1).ppt
jerlinS1
 
An important characteristic of a test suite that is computed by a dynamic ana...
jeyasrig
 
Debugging Presentation Rehman Ali.pptx
RehmanAli69
 
Verifcation &validation
ssusere50573
 
01SoftwEng.pptInnovation technology pptInnovation technology ppt
sultanahimed3
 
PHP - Introduction to PHP Bugs - Debugging
Vibrant Technologies & Computers
 
Software testing definition
Hiro Mia
 
st-notes-13-26-software-testing-is-the-act-of-examining-the-artifacts-and-the...
mwpeexdvjgtqujwhog
 
Software testing
Aman Adhikari
 
Ad

More from KarthigaGunasekaran1 (10)

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

Recently uploaded (20)

PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
How to Manage Global Discount in Odoo 18 POS
Celine George
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
MartinaBurlando1
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PDF
Exploring-Forces 5.pdf/8th science curiosity/by sandeep swamy notes/ppt
Sandeep Swamy
 
PDF
5.EXPLORING-FORCES-Detailed-Notes.pdf/8TH CLASS SCIENCE CURIOSITY
Sandeep Swamy
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PPTX
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
PPTX
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
PDF
Landforms and landscapes data surprise preview
jpinnuck
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PPTX
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
How to Manage Global Discount in Odoo 18 POS
Celine George
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
NOI Hackathon - Summer Edition - GreenThumber.pptx
MartinaBurlando1
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
Exploring-Forces 5.pdf/8th science curiosity/by sandeep swamy notes/ppt
Sandeep Swamy
 
5.EXPLORING-FORCES-Detailed-Notes.pdf/8TH CLASS SCIENCE CURIOSITY
Sandeep Swamy
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
Landforms and landscapes data surprise preview
jpinnuck
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 

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.