SlideShare une entreprise Scribd logo
1  sur  16
TESTING & DEBUGGING
R.Pavithra,
II-MSc(IT),
Nadar saraswathi college of arts and science,
Theni.
Contents
 Testing
 Unit testing
 Unit testing types
 Debugging
Testing
 Running a program with the intent of finding bugs.
 It has been many types,
◦ Unit testing
◦ System testing
◦ Integration testing
◦ Acceptance testing
◦ Functional testing
Unit testing
 Unit testing, a testing technique using which individual
modules are tested to determine if there are any issues by
the developer himself. It is concerned with functional
correctness of the standalone modules.
 The main aim is to isolate each unit of the system to
identify, analyze and fix the defects.
Coding &
Debugging Unit testing
Integration
testing
Types
Functional Testing :
Functional Testing is a testing technique that is used to
test the features/functionality of the system or Software,
should cover all the scenarios including failure paths and
boundary cases.
Performance Testing :
Performance testing, a
non-functional testing
technique performed to
determine the system
parameters in terms of
responsiveness and
stability under various
workload. Performance
testing measures the
quality attributes of the
system, such as scalability,
reliability and resource
usage.
Stress Testing :
 Stress testing a Non-Functional testing technique that is
performed as part of performance testing. During stress
testing, the system is monitored after subjecting the
system to overload to ensure that the system can sustain
the stress.
 The recovery of the system from such phase (after stress)
is very critical as it is highly likely to happen in
production environment.
Structural Testing :
• Structural testing, also
known as glass box testing
or white box testing is an
approach where the tests
are derived from the
knowledge of the
software's structure or
internal implementation.
• The other names of
structural testing includes
clear box testing, open box
testing, logic driven testing
or path driven testing.
Structural Testing
Techniques:
 Statement Coverage -
This technique is aimed at
exercising all
programming statements
with minimal tests.
 Branch Coverage - This
technique is running a
series of tests to ensure
that all branches are tested
at least once.
 Path Coverage - This
technique corresponds to
testing all possible paths
which means that each
statement and branch are
covered.
Debugging
 It is a systematic process of spotting and fixing the
number of bugs, or defects, in a piece of software so
that the software is behaving as expected.
 Debugging is harder for complex systems in
particular when various subsystems are tightly
coupled as changes in one system or interface may
cause bugs to emerge in another.
 Debugging is a developer activity and effective
debugging is very important before testing begins to
increase the quality of the system.
 Debugging will not give confidence that the system
meets its requirements completely but testing gives
confidence.
Debugging Process
 The debugging process begins with the executing of a
test case.
 Results re assessed and a lack of correspondence
between expected and actual performance is
encountered.
 In the latter case, the person performing debugging may
suspect a cause, design a test case to help validate that
suspicion, and work toward error correction in an
iterative fashion.
 The debugging process will always have one of two
outcomes
◦ The cause will be found and corrected.
◦ The cause will not be found.
Debugging Approaches
 Brute Force :
◦ Take memory dumps, invoke run time traces, program
is loaded with PRINT statements.
◦ We hope that in the mass of information that is
produced we will find a clue that can lead us to the
cause of an error.
◦ Least efficient and quite common.
◦ More frequently leads to wasted effort and time.
 Backtracking:
◦ Can be used successful in small programs.
◦ Beginning at the site where a symptom has been
uncovered the source code is traced
backward(manually) unit the site of the cause is
found.
◦ Disadvantage: as the number of source line increases,
the number of potential paths may become
unmanageably large.
 Cause elimination :
◦ Introduces the concept of binary partitioning.
◦ Uses binary partitioning to reduce the number of
locations potential where errors can exist.
◦ Isolate potential causes, devise cause hypotheses test
to isolate bug.
Testing &ampdebugging

Contenu connexe

Tendances

12 functional-system-testing
12 functional-system-testing12 functional-system-testing
12 functional-system-testing
nickynicks76
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
Nikita Knysh
 

Tendances (20)

Software Testing
Software TestingSoftware Testing
Software Testing
 
Software testing fundamentals
Software testing fundamentalsSoftware testing fundamentals
Software testing fundamentals
 
S.t.
S.t.S.t.
S.t.
 
Taxonomy for bugs
Taxonomy for bugsTaxonomy for bugs
Taxonomy for bugs
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Tlc
TlcTlc
Tlc
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)
 
Stm unit1
Stm unit1Stm unit1
Stm unit1
 
Test cases for effective testing - part 1
Test cases for effective testing - part 1Test cases for effective testing - part 1
Test cases for effective testing - part 1
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
 
12 functional-system-testing
12 functional-system-testing12 functional-system-testing
12 functional-system-testing
 
Software Testing & Debugging
Software Testing & DebuggingSoftware Testing & Debugging
Software Testing & Debugging
 
System testing
System testingSystem testing
System testing
 
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
 
Black-Box
Black-BoxBlack-Box
Black-Box
 
System testing
System testingSystem testing
System testing
 
Testing strategies
Testing strategiesTesting strategies
Testing strategies
 
The Myths and Facts Surrounding Software Testing
The Myths and Facts Surrounding Software TestingThe Myths and Facts Surrounding Software Testing
The Myths and Facts Surrounding Software Testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 

Similaire à Testing &ampdebugging

softwaretesting-140721025833-phpapp02.pptx
softwaretesting-140721025833-phpapp02.pptxsoftwaretesting-140721025833-phpapp02.pptx
softwaretesting-140721025833-phpapp02.pptx
SHAMSHADHUSAIN9
 
How to Make the Most of Regression and Unit Testing.pdf
How to Make the Most of Regression and Unit Testing.pdfHow to Make the Most of Regression and Unit Testing.pdf
How to Make the Most of Regression and Unit Testing.pdf
Abhay Kumar
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
Venkat Alagarsamy
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
Komal Garg
 

Similaire à Testing &ampdebugging (20)

Testing
Testing Testing
Testing
 
Object Oriented Testing
Object Oriented TestingObject Oriented Testing
Object Oriented Testing
 
Quality assurance tests
Quality assurance testsQuality assurance tests
Quality assurance tests
 
A COMPOSITION ON SOFTWARE TESTING
A COMPOSITION ON SOFTWARE TESTINGA COMPOSITION ON SOFTWARE TESTING
A COMPOSITION ON SOFTWARE TESTING
 
Software testing
Software testingSoftware testing
Software testing
 
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdfSoftware Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
 
softwaretesting-140721025833-phpapp02.pptx
softwaretesting-140721025833-phpapp02.pptxsoftwaretesting-140721025833-phpapp02.pptx
softwaretesting-140721025833-phpapp02.pptx
 
How to Make the Most of Regression and Unit Testing.pdf
How to Make the Most of Regression and Unit Testing.pdfHow to Make the Most of Regression and Unit Testing.pdf
How to Make the Most of Regression and Unit Testing.pdf
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4  SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4
 
Software unit4
Software unit4Software unit4
Software unit4
 
Software testing
Software testingSoftware testing
Software testing
 
Chapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineeringChapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineering
 
unittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx documentunittesting-190620114546 (1).pptx document
unittesting-190620114546 (1).pptx document
 
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
 
Some Commonly Asked Question For Software Testing
Some Commonly Asked Question For Software TestingSome Commonly Asked Question For Software Testing
Some Commonly Asked Question For Software Testing
 
Software engg unit 4
Software engg unit 4 Software engg unit 4
Software engg unit 4
 
Software testing
Software testingSoftware testing
Software testing
 
Chapter 9 Testing Strategies.ppt
Chapter 9 Testing Strategies.pptChapter 9 Testing Strategies.ppt
Chapter 9 Testing Strategies.ppt
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
 

Plus de rajshreemuthiah (20)

oracle
oracleoracle
oracle
 
quality
qualityquality
quality
 
bigdata
bigdatabigdata
bigdata
 
polymorphism
polymorphismpolymorphism
polymorphism
 
solutions and understanding text analytics
solutions and understanding text analyticssolutions and understanding text analytics
solutions and understanding text analytics
 
interface
interfaceinterface
interface
 
concurrency control
concurrency controlconcurrency control
concurrency control
 
Education
EducationEducation
Education
 
Formal verification
Formal verificationFormal verification
Formal verification
 
Transaction management
Transaction management Transaction management
Transaction management
 
Multi thread
Multi threadMulti thread
Multi thread
 
System testing
System testingSystem testing
System testing
 
software maintenance
software maintenancesoftware maintenance
software maintenance
 
exception handling
exception handlingexception handling
exception handling
 
e governance
e governancee governance
e governance
 
recovery management
recovery managementrecovery management
recovery management
 
Implementing polymorphism
Implementing polymorphismImplementing polymorphism
Implementing polymorphism
 
Buffer managements
Buffer managementsBuffer managements
Buffer managements
 
os linux
os linuxos linux
os linux
 
Ipv4
Ipv4Ipv4
Ipv4
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Testing &ampdebugging

  • 1. TESTING & DEBUGGING R.Pavithra, II-MSc(IT), Nadar saraswathi college of arts and science, Theni.
  • 2. Contents  Testing  Unit testing  Unit testing types  Debugging
  • 3. Testing  Running a program with the intent of finding bugs.  It has been many types, ◦ Unit testing ◦ System testing ◦ Integration testing ◦ Acceptance testing ◦ Functional testing
  • 4. Unit testing  Unit testing, a testing technique using which individual modules are tested to determine if there are any issues by the developer himself. It is concerned with functional correctness of the standalone modules.  The main aim is to isolate each unit of the system to identify, analyze and fix the defects. Coding & Debugging Unit testing Integration testing
  • 5.
  • 6. Types Functional Testing : Functional Testing is a testing technique that is used to test the features/functionality of the system or Software, should cover all the scenarios including failure paths and boundary cases.
  • 7. Performance Testing : Performance testing, a non-functional testing technique performed to determine the system parameters in terms of responsiveness and stability under various workload. Performance testing measures the quality attributes of the system, such as scalability, reliability and resource usage.
  • 8. Stress Testing :  Stress testing a Non-Functional testing technique that is performed as part of performance testing. During stress testing, the system is monitored after subjecting the system to overload to ensure that the system can sustain the stress.  The recovery of the system from such phase (after stress) is very critical as it is highly likely to happen in production environment.
  • 9. Structural Testing : • Structural testing, also known as glass box testing or white box testing is an approach where the tests are derived from the knowledge of the software's structure or internal implementation. • The other names of structural testing includes clear box testing, open box testing, logic driven testing or path driven testing. Structural Testing Techniques:  Statement Coverage - This technique is aimed at exercising all programming statements with minimal tests.  Branch Coverage - This technique is running a series of tests to ensure that all branches are tested at least once.  Path Coverage - This technique corresponds to testing all possible paths which means that each statement and branch are covered.
  • 10. Debugging  It is a systematic process of spotting and fixing the number of bugs, or defects, in a piece of software so that the software is behaving as expected.  Debugging is harder for complex systems in particular when various subsystems are tightly coupled as changes in one system or interface may cause bugs to emerge in another.  Debugging is a developer activity and effective debugging is very important before testing begins to increase the quality of the system.  Debugging will not give confidence that the system meets its requirements completely but testing gives confidence.
  • 11. Debugging Process  The debugging process begins with the executing of a test case.  Results re assessed and a lack of correspondence between expected and actual performance is encountered.  In the latter case, the person performing debugging may suspect a cause, design a test case to help validate that suspicion, and work toward error correction in an iterative fashion.  The debugging process will always have one of two outcomes ◦ The cause will be found and corrected. ◦ The cause will not be found.
  • 12.
  • 13. Debugging Approaches  Brute Force : ◦ Take memory dumps, invoke run time traces, program is loaded with PRINT statements. ◦ We hope that in the mass of information that is produced we will find a clue that can lead us to the cause of an error. ◦ Least efficient and quite common. ◦ More frequently leads to wasted effort and time.
  • 14.  Backtracking: ◦ Can be used successful in small programs. ◦ Beginning at the site where a symptom has been uncovered the source code is traced backward(manually) unit the site of the cause is found. ◦ Disadvantage: as the number of source line increases, the number of potential paths may become unmanageably large.
  • 15.  Cause elimination : ◦ Introduces the concept of binary partitioning. ◦ Uses binary partitioning to reduce the number of locations potential where errors can exist. ◦ Isolate potential causes, devise cause hypotheses test to isolate bug.