SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
IT 8076 Software Testing
UNIT – I Part -3
Dr. S. Roselin Mary,
Professor & Head
Department of Computer Science and Engineering
(NBA Accredited)
Anand Institute of Higher Technology, Chennai
Defect Classes :
• Important – adapt a single classification scheme & apply it to all projects
• Some defects will fit into more than one class or category – developers, testers &
SQA – try to be consistent when recording defect data
• Defect types & frequency of occurrence  guide test planning & test design
• Execution based testing strategies – strongest possibilities of detecting particular
types of defect
• Tests for new & modified software – designed to detect the most frequently
occurring defects
• Defect classes focusing execution based testing:
» Requirement/specification defect class
- Design defect class
- Coding defect class
- Testing defect class12/14/2019 2Dr.S.Roselin Mary, HOD/CSE
D
E
F
E
C
T
C
L
A
S
S
E
S
12/08/2019
DR.S.ROSELIN MARY, PROFESSOR &
HOD/CSE
3
1. Requirement / specification Defect classes:
• Defects injected in early phase persist & very tough to remove at later phases
• Requirement document
– written in natural language with specification
– Occurrence of ambiguous, contradictions, unclear, redundant &imprecise requirements
• Specification document – similar
– format specification language with tools
– to prevent incorrect description of system behavior
 Functional Description defects –
overall description of what the system does & how the system should behave is incorrect, ambiguous
& incomplete
 Feature defects
– feature descriptions – missing, incorrect, incomplete superfluous
– Distinguishing character of a software component/system
 Feature Interaction defects
– incorrect description of how the features should interact
– Explain the example
 Interface description defects
– defects that occur in the description of how the target software is to interface with external
hardware, software & users
• Blackbox based testing – at unit, integration, system & acceptance levels
• Feature interaction & Interface description defects – detected using BB test at integration & system level
tests
12/14/2019 4Dr.S.Roselin Mary, HOD/CSE
2. Design defects:
• Occur when system components, interaction between component to
component, component to outside software/hardware are incorrectly
designed
• Covers defects in design of algorithm, control, logic, data elements, module
interface description
• Detailed design description – at pseudo level with processing steps, data
structures, input output parameters & control structures
 Algorithmic & Processing defects:
– Processing steps – incorrect
– Calculation – not in order – missing/duplicated
– Algorithm reuse – chosen an inappropriate algorithm
 Control, logic & sequence defects
– Control defects occur when logic flow – incorrect
– Branching – soon, late, incorrect
– Unreachable psuedocode, improper nesting, improper procedure calls
– Incorrect use of logic operators < , >, Boolean expression in branching operation
 Data defects
– Incorrect design of data structures
– Record – lacking a field, incorrect type for variable in record
– Array – not have proper number of elements assigned
– Reviews/data dictionary – reveal these defects
12/14/2019 5Dr.S.Roselin Mary, HOD/CSE
 Module Interface description defects
– Incorrect/inconsistent parameter types
– Incorrect number of parameters/ ordering of parameters
 Functional description defects
– Design maynot properly describe the functionality of a module
– Incorrect/missing/unclear design elements
– Detected during design review
 External Interface description defects
– Incorrect design descriptions for interfaces external software, database & hardware
devices
– Improper sequence of commands, lack of proper messages & feedback messages
3. Coding defects
• From errors in implementing the code
• Closely related to design defect classes
• Not understanding programming constructs
• Transcription/omission
 Algorithmic & Processing defects
– Unchecked overflow, underflow conditions
– Comparing inappropriate data types
– Conversion of datatype
– Precedence of operators
– Misuse of parentheses
– Incorrect use of signs12/14/2019 6Dr.S.Roselin Mary, HOD/CSE
 Control, logic and sequence defects
– Case statements , iteration of loops, missing paths
 Typographical defects –syntax error
 Initialization defects – omission / incorrect initialization statements
 Dataflow defects
– Variable should be initialized before its use
– Don’t initialize twice before intermediate use
 Data defects
– Incorrect implementation of data structures
– record, array, flags, indices & constant sets
 Module Interface defects – similar to design defects
 Code documentation defects
– Code documentation – doesn’t reflect what the program actually does
– Incomplete/ ambiguous/incorrect/out of date
 External hardware, software interface defects
– System calls, links to database, input output sequences, memeory usage, resource
usage, interrupts, protocols & interfaces with build files
• Design & coding defects – whitebox testing – dataflow, control, logic
– Blackbox testing – decision tables, Boolean expression
12/14/2019 7Dr.S.Roselin Mary, HOD/CSE
4. Testing defects
• Defects in test plan, test cases, test harnesses,
procedures
Test Hareness defect
– Test hareness / Scaffolding code – auxiliary code
developed to test the software at the unit and integration
levels
– Should be carefully designed & tested – reuse
– Subject to all other types of defects
Test case design/ Test procedure defects
– Incorrect/incomplete, missing, inappropriate test cases &
procedures
12/14/2019 8Dr.S.Roselin Mary, HOD/CSE

More Related Content

PPS
Software Devlopment Life Cycle
PDF
Software Engineering : Requirement Analysis & Specification
PDF
INTEGRATION TESTING
PPTX
Software development process models
PPT
Formal Specification in Software Engineering SE9
ODP
White box ppt
PPT
Software design
PPTX
Black Box Testing
Software Devlopment Life Cycle
Software Engineering : Requirement Analysis & Specification
INTEGRATION TESTING
Software development process models
Formal Specification in Software Engineering SE9
White box ppt
Software design
Black Box Testing

What's hot (20)

PPTX
Introduction to software testing
PPT
Chapter 15 software product metrics
PPT
Chapter 13 software testing strategies
PPTX
PPTX
Software process Models
PDF
Software testing methods, levels and types
PPTX
Software testing ppt
PPT
PDF
SOFTWARE PROJECT PLANNING on Software Engineering
PDF
Software testing axioms
PPTX
Validation testing
PPTX
Black box software testing
PPT
Rad model
PPT
Software design, software engineering
PPTX
Language and Processors for Requirements Specification
PPTX
Quality and productivity factors
PPT
PPT
Architecture design in software engineering
PPTX
Statistical Software Quality Assurance.pptx
PPTX
Software Testing and Quality Assurance (Error, Bug, Fault)
Introduction to software testing
Chapter 15 software product metrics
Chapter 13 software testing strategies
Software process Models
Software testing methods, levels and types
Software testing ppt
SOFTWARE PROJECT PLANNING on Software Engineering
Software testing axioms
Validation testing
Black box software testing
Rad model
Software design, software engineering
Language and Processors for Requirements Specification
Quality and productivity factors
Architecture design in software engineering
Statistical Software Quality Assurance.pptx
Software Testing and Quality Assurance (Error, Bug, Fault)
Ad

Similar to Unit 1 defects classes (20)

PPT
Taxonomy for bugs
PPTX
Software_Testing_Overview.pptx
PDF
unit 1 various software testing description
PPTX
Blackboard DevCon 2011 - Developing B2 for Performance and Scalability
PPT
Lecture 1
PDF
Building Quality in Legacy Systems - The Art of Asking Questions
PPTX
Webinar on Functional Safety Analysis using Model-based System Analysis
PDF
Dependable Systems -Software Dependability (15/16)
PPTX
PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...
PDF
Sfsvsqlug june-2010
PDF
Microsoft SQL Server Seven Deadly Sins of Database Design
PPTX
February 2017 HUG: Slow, Stuck, or Runaway Apps? Learn How to Quickly Fix Pro...
PDF
Testing Throughout the Software Life Cycle (2013)
PPT
Fundamentals of Software Engineering
PPT
Software Performance
PDF
Db testing concepts swt
PPTX
Application and Website Security -- Developer Edition: Introducing Security I...
PPTX
Software Testing overview jay prakash maurya.pptx
PPTX
Performance Testing
PPTX
Interactive SDLC
Taxonomy for bugs
Software_Testing_Overview.pptx
unit 1 various software testing description
Blackboard DevCon 2011 - Developing B2 for Performance and Scalability
Lecture 1
Building Quality in Legacy Systems - The Art of Asking Questions
Webinar on Functional Safety Analysis using Model-based System Analysis
Dependable Systems -Software Dependability (15/16)
PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...
Sfsvsqlug june-2010
Microsoft SQL Server Seven Deadly Sins of Database Design
February 2017 HUG: Slow, Stuck, or Runaway Apps? Learn How to Quickly Fix Pro...
Testing Throughout the Software Life Cycle (2013)
Fundamentals of Software Engineering
Software Performance
Db testing concepts swt
Application and Website Security -- Developer Edition: Introducing Security I...
Software Testing overview jay prakash maurya.pptx
Performance Testing
Interactive SDLC
Ad

More from Roselin Mary S (9)

PPTX
Unit 2 hci in software process
PDF
Unit1 17-08-2020 HUMAN COMPUTER INTERACTION
PPTX
Unit 1 part 2
PPTX
IT 8076 Software Testing Unit1
PDF
Service Oriented Architecture -Unit II - Modeling databases in xml
PDF
Service Oriented Architecture - Unit II
PDF
Service Oriented Architecture- UNIT 2- XSL
PDF
Service Oriented Architecture - Unit II - Sax
PPT
Service oriented architeture Unit 1
Unit 2 hci in software process
Unit1 17-08-2020 HUMAN COMPUTER INTERACTION
Unit 1 part 2
IT 8076 Software Testing Unit1
Service Oriented Architecture -Unit II - Modeling databases in xml
Service Oriented Architecture - Unit II
Service Oriented Architecture- UNIT 2- XSL
Service Oriented Architecture - Unit II - Sax
Service oriented architeture Unit 1

Recently uploaded (20)

PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Sustainable Sites - Green Building Construction
PPTX
Welding lecture in detail for understanding
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Well-logging-methods_new................
PDF
Digital Logic Computer Design lecture notes
PPTX
UNIT 4 Total Quality Management .pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
DOCX
573137875-Attendance-Management-System-original
PDF
composite construction of structures.pdf
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
CH1 Production IntroductoryConcepts.pptx
Lesson 3_Tessellation.pptx finite Mathematics
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Sustainable Sites - Green Building Construction
Welding lecture in detail for understanding
Structs to JSON How Go Powers REST APIs.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Arduino robotics embedded978-1-4302-3184-4.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Well-logging-methods_new................
Digital Logic Computer Design lecture notes
UNIT 4 Total Quality Management .pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
573137875-Attendance-Management-System-original
composite construction of structures.pdf
Strings in CPP - Strings in C++ are sequences of characters used to store and...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...

Unit 1 defects classes

  • 1. IT 8076 Software Testing UNIT – I Part -3 Dr. S. Roselin Mary, Professor & Head Department of Computer Science and Engineering (NBA Accredited) Anand Institute of Higher Technology, Chennai
  • 2. Defect Classes : • Important – adapt a single classification scheme & apply it to all projects • Some defects will fit into more than one class or category – developers, testers & SQA – try to be consistent when recording defect data • Defect types & frequency of occurrence  guide test planning & test design • Execution based testing strategies – strongest possibilities of detecting particular types of defect • Tests for new & modified software – designed to detect the most frequently occurring defects • Defect classes focusing execution based testing: » Requirement/specification defect class - Design defect class - Coding defect class - Testing defect class12/14/2019 2Dr.S.Roselin Mary, HOD/CSE
  • 4. 1. Requirement / specification Defect classes: • Defects injected in early phase persist & very tough to remove at later phases • Requirement document – written in natural language with specification – Occurrence of ambiguous, contradictions, unclear, redundant &imprecise requirements • Specification document – similar – format specification language with tools – to prevent incorrect description of system behavior  Functional Description defects – overall description of what the system does & how the system should behave is incorrect, ambiguous & incomplete  Feature defects – feature descriptions – missing, incorrect, incomplete superfluous – Distinguishing character of a software component/system  Feature Interaction defects – incorrect description of how the features should interact – Explain the example  Interface description defects – defects that occur in the description of how the target software is to interface with external hardware, software & users • Blackbox based testing – at unit, integration, system & acceptance levels • Feature interaction & Interface description defects – detected using BB test at integration & system level tests 12/14/2019 4Dr.S.Roselin Mary, HOD/CSE
  • 5. 2. Design defects: • Occur when system components, interaction between component to component, component to outside software/hardware are incorrectly designed • Covers defects in design of algorithm, control, logic, data elements, module interface description • Detailed design description – at pseudo level with processing steps, data structures, input output parameters & control structures  Algorithmic & Processing defects: – Processing steps – incorrect – Calculation – not in order – missing/duplicated – Algorithm reuse – chosen an inappropriate algorithm  Control, logic & sequence defects – Control defects occur when logic flow – incorrect – Branching – soon, late, incorrect – Unreachable psuedocode, improper nesting, improper procedure calls – Incorrect use of logic operators < , >, Boolean expression in branching operation  Data defects – Incorrect design of data structures – Record – lacking a field, incorrect type for variable in record – Array – not have proper number of elements assigned – Reviews/data dictionary – reveal these defects 12/14/2019 5Dr.S.Roselin Mary, HOD/CSE
  • 6.  Module Interface description defects – Incorrect/inconsistent parameter types – Incorrect number of parameters/ ordering of parameters  Functional description defects – Design maynot properly describe the functionality of a module – Incorrect/missing/unclear design elements – Detected during design review  External Interface description defects – Incorrect design descriptions for interfaces external software, database & hardware devices – Improper sequence of commands, lack of proper messages & feedback messages 3. Coding defects • From errors in implementing the code • Closely related to design defect classes • Not understanding programming constructs • Transcription/omission  Algorithmic & Processing defects – Unchecked overflow, underflow conditions – Comparing inappropriate data types – Conversion of datatype – Precedence of operators – Misuse of parentheses – Incorrect use of signs12/14/2019 6Dr.S.Roselin Mary, HOD/CSE
  • 7.  Control, logic and sequence defects – Case statements , iteration of loops, missing paths  Typographical defects –syntax error  Initialization defects – omission / incorrect initialization statements  Dataflow defects – Variable should be initialized before its use – Don’t initialize twice before intermediate use  Data defects – Incorrect implementation of data structures – record, array, flags, indices & constant sets  Module Interface defects – similar to design defects  Code documentation defects – Code documentation – doesn’t reflect what the program actually does – Incomplete/ ambiguous/incorrect/out of date  External hardware, software interface defects – System calls, links to database, input output sequences, memeory usage, resource usage, interrupts, protocols & interfaces with build files • Design & coding defects – whitebox testing – dataflow, control, logic – Blackbox testing – decision tables, Boolean expression 12/14/2019 7Dr.S.Roselin Mary, HOD/CSE
  • 8. 4. Testing defects • Defects in test plan, test cases, test harnesses, procedures Test Hareness defect – Test hareness / Scaffolding code – auxiliary code developed to test the software at the unit and integration levels – Should be carefully designed & tested – reuse – Subject to all other types of defects Test case design/ Test procedure defects – Incorrect/incomplete, missing, inappropriate test cases & procedures 12/14/2019 8Dr.S.Roselin Mary, HOD/CSE