SlideShare a Scribd company logo
Software Testing
Van Thi Kim Ngan
Aug-2005
Agenda
•
•
•
•
•

What is test?
Why is testing necessary?
What is bug?
Lifecycle of a bug
Record and Manage bug
What is test?
• Testing is the process of exercising or
evaluating a system or system component
by manual or automated means to verify
that it satisfies specified requirements
Some English…
• Verification : Methods to ensure that the
system complies with an organizational
standard or process
• Validation: Ensure that the system operates
according to a plan by executing system
functions
Why is testing necessary?
• Because software is likely to have faults
• To learn about the reliability of the
software
• Because failures can be very expensive
• To avoid being sued by customers
• To stay in business
What is bug?
• A fault in a program which causes the
program to perform in an unintended or
unanticipated manner.
Failure
• Deviation of the software from its expected
delivery or service
• Failure is an event
Fault
• Cause that failure is caused
• Defect or error inside a program

It is said to be a bug generally
Error
• A human action that produces an incorrect
result
Mistake
Oversight
Hand omission
Relation of failure, fault and error
A person
makes
an error ...
… that creates
a
fault in the
software ...
… that can
cause
a failure
in operation
“Importance” of bugs (in $$)
• Frequency (Fre)
• Correction cost (Cor):
– Typically, significantly more the later the bug is
discovered

• Installation cost (Ins):
– Cost of installing the fix

• Consequences (Con)
“Importance” of bugs (Con.)
• Importance = Fre * (Cor + Ins + Con)
– It’s not obvious that these costs can simply be
added.
– Another cost item may be “bug maintenance”: help
desk effort, etc., to assist users to work around it
Cost of bugs
Bug Lifecycle
LOG DEFECT
Defect status: ERROR

Analyse Defect

ASSIGN DEFECT
Defect status: ASSIGNED

CORRECT DEFECT
Defect status: PENDING

Error

Retest Defect

Corrected

CLOSE DEFECT
Defect status: TESTED

ACCEPT DEFECT
Defect status: ACCEPTED
Not all bugs are equal
Fatal
Damage
Serious

Medium
Cosmetic
Bug Type
Bug severity
• Cosmetic bugs
– A defect that in no way affects the performance of
the product. It may be a grammatical error

• Medium bugs
– This defect doesn’t stop the user from proceeding,
but causes inconvenience
Bug severity (Con.)
• Serious bugs
– System cannot work around

• Fatal bugs
– Defects may stop the user from using the system
further, the system is crashed
Bug Status
• ERROR
– The defect is not fixed, or fixed but not satisfactorily
as required

• ASSIGNED
– The defect is reviewed and assigned to fix it

• PENDING
– The defect is already fixed and waiting to retest
Bug Status (Con.)
• TESTED
– The defect is fixed satisfactorily as required

• ACCEPTED
– The defect has not been fixed satisfactorily as
required, but it’s accepted by concession of authority
or customer

• CANCELLED
– It’s not a defect or defect is removed by actions
other than bug fixing
Bug classification
•
•
•
•
•
•

Requirements and feature bugs
Structural bugs
Data bugs
Coding bugs
Interface, integration and system bugs
Test and test design bugs
Bug classification (Con.)
• Requirements & Feature Bugs
– Requirements bugs are the first to invade the system
and the last to leave
– Specs are often self-contradictory, incomplete and
ambiguous
– Extra features, other gratuitous enhancements tend
to be error prone
– Feature interaction problems
Bug classification (Con.)
• Structural Bugs
–
–
–
–

Control and sequence bugs
Logic bugs
Processing bugs
Initialization and dataflow bugs
Bug classification (Con.)
• Structure & Sequence Bugs
–
–
–
–

Unreachable code
Paths left out
Goto problems
Spaghetti code
Bug classification (Con.)
• Logic Bugs
–
–
–
–

Misunderstood switch-statement semantics
Improper Boolean logic
Improper simplification and combination of cases
Misunderstood expression evaluation
Bug classification (Con.)
• Processing Bugs
–
–
–

Arithmetic bugs
Algebraic bugs
Incorrect conversion
Bug classification (Con.)
• Initialization and data bugs
–
–
–
–
–

Improper initialization
Using an un-initialized variable
Double initialization
Modifying data but not keeping the result
Dangling pointers
Bug classification (Con.)
• Coding Bugs
–
–
–

Typos
Misunderstood language syntax and semantics
Erroneous comments
Bug classification (Con.)
• Interface, Integration & System Bugs
–
–
–

External interfaces
Internal interfaces
Bugs related to hardware, system software, or OS
interface
– Integration bugs
Bug classification (Con.)
• Tests & Test Design Bugs
–
–

Bugs in the test (“scaffolding”) software
Bugs in test data
Bug Tracking Tools
• Trakium: Issue Tracking System
–
–

Vendor: Multitech
www.trakium.com

• Test Director: Provide -Requirements
Management, Test Plan, Test Case, and Defects
Management
–
–

Vendor: Mercury
www.mercury.com
Questions & Answers

More Related Content

PPT
Gd test kieu_test
PPTX
Software testing
PPTX
Software testing
PPTX
Software Testing Strategies, Method and Life Cycle
PPT
Software testing definition
PPTX
Software testing
PPTX
System testing
PPTX
Types of Testing
Gd test kieu_test
Software testing
Software testing
Software Testing Strategies, Method and Life Cycle
Software testing definition
Software testing
System testing
Types of Testing

What's hot (20)

PPTX
Defect Life Cycle
PPTX
Testing Concepts and Manual Testing
PPTX
System testing
PPTX
Manual testing
PDF
Testing methodology
PPTX
Validation testing
PPTX
Object Oriented Testing(OOT) presentation slides
PPTX
software testing methodologies
PPTX
System testing
PDF
Integration test
PDF
7 stages of unit testing
PPT
Software quality and testing (func. & non func.)
PDF
Objectorientedtesting 160320132146
PPSX
Role of BA in Testing
PPTX
Object oriented testing
PPT
Software requirement verification & validation
PPTX
Introduction to software testing
PPT
Testing of Object-Oriented Software
PPTX
Software Testing Fundamentals | Basics Of Software Testing
PPT
Software testing
Defect Life Cycle
Testing Concepts and Manual Testing
System testing
Manual testing
Testing methodology
Validation testing
Object Oriented Testing(OOT) presentation slides
software testing methodologies
System testing
Integration test
7 stages of unit testing
Software quality and testing (func. & non func.)
Objectorientedtesting 160320132146
Role of BA in Testing
Object oriented testing
Software requirement verification & validation
Introduction to software testing
Testing of Object-Oriented Software
Software Testing Fundamentals | Basics Of Software Testing
Software testing
Ad

Viewers also liked (15)

PPT
Method to Print Multiple Notes on a single page
DOCX
Laporan eksekutif
PPTX
How to Create a New PST file from Old Emails?
PDF
Kertas kerja amsa malaysia jppel updated
DOCX
Laporan eksekutif 2
PPTX
Common Problems with Outlook 2010
PPTX
How to Change Time Format in Outlook ?
PPTX
Sync Google Calendar with Outlook 2010 !!
PPTX
What is journals
PPT
PPTX
How to add RSS Feed in MS Outlook?
PPTX
Omgevingsloket test slideshow
DOCX
Minit mesyuarat 2
PDF
High Pressure Refolding BPS 2015 LG
PPTX
Hhhc 9201
Method to Print Multiple Notes on a single page
Laporan eksekutif
How to Create a New PST file from Old Emails?
Kertas kerja amsa malaysia jppel updated
Laporan eksekutif 2
Common Problems with Outlook 2010
How to Change Time Format in Outlook ?
Sync Google Calendar with Outlook 2010 !!
What is journals
How to add RSS Feed in MS Outlook?
Omgevingsloket test slideshow
Minit mesyuarat 2
High Pressure Refolding BPS 2015 LG
Hhhc 9201
Ad

Similar to Software testing day1 (20)

PPTX
ST UNIT-1.pptx
PPT
software testing mtehododlogies path testing
PPTX
Bug reporting and tracking
PPTX
sri indu 1213 it
PPT
Bug Reporting
PPTX
SoftwareTesting.pptx
PDF
ISTQB Chapter 1 Fundamentals of Testing
PPTX
Bug life cycle
PPTX
Software_Testing_Overview.pptx
PDF
Bug Life Cycle in Software Testing: Understanding the Journey from Detection ...
PDF
Session17-Software Testing.pdf
PDF
IRJET- Technique of Finding the Defect in Software Testing
PPTX
Fundamental Of Testing (Dhea Frizky)
PDF
Software testing
PDF
Ady beleanu automate-theprocessdelivery
PDF
Rtc2014 automate the_process_deliver_quality_ady_beleanu
PPTX
CTFL Module 01
PPTX
Software Testing overview jay prakash maurya.pptx
PDF
Reading Summary - Effective Software Defect Tracking + Pragmatic Unit Testing
ST UNIT-1.pptx
software testing mtehododlogies path testing
Bug reporting and tracking
sri indu 1213 it
Bug Reporting
SoftwareTesting.pptx
ISTQB Chapter 1 Fundamentals of Testing
Bug life cycle
Software_Testing_Overview.pptx
Bug Life Cycle in Software Testing: Understanding the Journey from Detection ...
Session17-Software Testing.pdf
IRJET- Technique of Finding the Defect in Software Testing
Fundamental Of Testing (Dhea Frizky)
Software testing
Ady beleanu automate-theprocessdelivery
Rtc2014 automate the_process_deliver_quality_ady_beleanu
CTFL Module 01
Software Testing overview jay prakash maurya.pptx
Reading Summary - Effective Software Defect Tracking + Pragmatic Unit Testing

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Chapter 3 Spatial Domain Image Processing.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Electronic commerce courselecture one. Pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Big Data Technologies - Introduction.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Modernizing your data center with Dell and AMD
20250228 LYD VKU AI Blended-Learning.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Chapter 3 Spatial Domain Image Processing.pdf
The AUB Centre for AI in Media Proposal.docx
MYSQL Presentation for SQL database connectivity
Electronic commerce courselecture one. Pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Big Data Technologies - Introduction.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Weekly Chronicles - August'25 Week I
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Understanding_Digital_Forensics_Presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Review of recent advances in non-invasive hemoglobin estimation
Modernizing your data center with Dell and AMD

Software testing day1

  • 1. Software Testing Van Thi Kim Ngan Aug-2005
  • 2. Agenda • • • • • What is test? Why is testing necessary? What is bug? Lifecycle of a bug Record and Manage bug
  • 3. What is test? • Testing is the process of exercising or evaluating a system or system component by manual or automated means to verify that it satisfies specified requirements
  • 4. Some English… • Verification : Methods to ensure that the system complies with an organizational standard or process • Validation: Ensure that the system operates according to a plan by executing system functions
  • 5. Why is testing necessary? • Because software is likely to have faults • To learn about the reliability of the software • Because failures can be very expensive • To avoid being sued by customers • To stay in business
  • 6. What is bug? • A fault in a program which causes the program to perform in an unintended or unanticipated manner.
  • 7. Failure • Deviation of the software from its expected delivery or service • Failure is an event
  • 8. Fault • Cause that failure is caused • Defect or error inside a program It is said to be a bug generally
  • 9. Error • A human action that produces an incorrect result Mistake Oversight Hand omission
  • 10. Relation of failure, fault and error A person makes an error ... … that creates a fault in the software ... … that can cause a failure in operation
  • 11. “Importance” of bugs (in $$) • Frequency (Fre) • Correction cost (Cor): – Typically, significantly more the later the bug is discovered • Installation cost (Ins): – Cost of installing the fix • Consequences (Con)
  • 12. “Importance” of bugs (Con.) • Importance = Fre * (Cor + Ins + Con) – It’s not obvious that these costs can simply be added. – Another cost item may be “bug maintenance”: help desk effort, etc., to assist users to work around it
  • 14. Bug Lifecycle LOG DEFECT Defect status: ERROR Analyse Defect ASSIGN DEFECT Defect status: ASSIGNED CORRECT DEFECT Defect status: PENDING Error Retest Defect Corrected CLOSE DEFECT Defect status: TESTED ACCEPT DEFECT Defect status: ACCEPTED
  • 15. Not all bugs are equal Fatal Damage Serious Medium Cosmetic Bug Type
  • 16. Bug severity • Cosmetic bugs – A defect that in no way affects the performance of the product. It may be a grammatical error • Medium bugs – This defect doesn’t stop the user from proceeding, but causes inconvenience
  • 17. Bug severity (Con.) • Serious bugs – System cannot work around • Fatal bugs – Defects may stop the user from using the system further, the system is crashed
  • 18. Bug Status • ERROR – The defect is not fixed, or fixed but not satisfactorily as required • ASSIGNED – The defect is reviewed and assigned to fix it • PENDING – The defect is already fixed and waiting to retest
  • 19. Bug Status (Con.) • TESTED – The defect is fixed satisfactorily as required • ACCEPTED – The defect has not been fixed satisfactorily as required, but it’s accepted by concession of authority or customer • CANCELLED – It’s not a defect or defect is removed by actions other than bug fixing
  • 20. Bug classification • • • • • • Requirements and feature bugs Structural bugs Data bugs Coding bugs Interface, integration and system bugs Test and test design bugs
  • 21. Bug classification (Con.) • Requirements & Feature Bugs – Requirements bugs are the first to invade the system and the last to leave – Specs are often self-contradictory, incomplete and ambiguous – Extra features, other gratuitous enhancements tend to be error prone – Feature interaction problems
  • 22. Bug classification (Con.) • Structural Bugs – – – – Control and sequence bugs Logic bugs Processing bugs Initialization and dataflow bugs
  • 23. Bug classification (Con.) • Structure & Sequence Bugs – – – – Unreachable code Paths left out Goto problems Spaghetti code
  • 24. Bug classification (Con.) • Logic Bugs – – – – Misunderstood switch-statement semantics Improper Boolean logic Improper simplification and combination of cases Misunderstood expression evaluation
  • 25. Bug classification (Con.) • Processing Bugs – – – Arithmetic bugs Algebraic bugs Incorrect conversion
  • 26. Bug classification (Con.) • Initialization and data bugs – – – – – Improper initialization Using an un-initialized variable Double initialization Modifying data but not keeping the result Dangling pointers
  • 27. Bug classification (Con.) • Coding Bugs – – – Typos Misunderstood language syntax and semantics Erroneous comments
  • 28. Bug classification (Con.) • Interface, Integration & System Bugs – – – External interfaces Internal interfaces Bugs related to hardware, system software, or OS interface – Integration bugs
  • 29. Bug classification (Con.) • Tests & Test Design Bugs – – Bugs in the test (“scaffolding”) software Bugs in test data
  • 30. Bug Tracking Tools • Trakium: Issue Tracking System – – Vendor: Multitech www.trakium.com • Test Director: Provide -Requirements Management, Test Plan, Test Case, and Defects Management – – Vendor: Mercury www.mercury.com

Editor's Notes

  • #4: Process: Sequence of steps performed for a given purpose. (IEEE – Institute Electrical & Electronic Engineers ) Software Process A set of activities, methods, practices, and transformations that people use to develop and maintain software and associated products.(SEI-CMM – Software Engineering Institute – Capability Maturity Model for Software)
  • #9: if executed, a fault may cause a failure also known as a defect or bug fault is a state of the software, caused by an error