SlideShare a Scribd company logo
1 of 16
Testing
Outline
 Terminology
 Types of errors
 Dealing with errors
 Quality assurance vs Testing
 Component Testing
 Unit testing
 Integration testing

 Testing Strategy
 Design Patterns & Testing

2

AMBIKA J Asst.Professor Kings College Of Engineering

 System testing
 Function testing
 Structure Testing
 Performance testing
 Acceptance testing
 Installation testing
Some Observations
It is impossible to

completely test any
nontrivial module or any
system
Theoretical limitations:

Halting problem
Practial limitations:
Prohibitive in time and
cost

Testing can only show the

presence of bugs, not their
absence (Dijkstra)

3

AMBIKA J Asst.Professor Kings College Of Engineering

loop 200 times
Testing Activities
Global
Requirements
Validated
Functioning
System PerformanceSystem

Client’s
Understanding
of Requirements

User
Environment

Accepted
System

Test

Functional Test

Usable
System

Tests by client
Tests by client
Tests by developer
Tests by developer

User’s understanding

Tests (?) by user
Tests (?) by user
4

AMBIKA J Asst.Professor Kings College Of Engineering

Use
Level of abstraction

Levels of Testing in V Model

system
integration

system
requirements
software
requirements

acceptance
test
software
integration

an

nd
ea
lyz
ana

tes
t

preliminary
design

component
test

te

ig
des

di
n
teg
ra

detailed
design
n

code &
debug

unit
test
Time

5

AMBIKA J Asst.Professor Kings College Of Engineering

N.B.: component test vs. unit test; acceptance test vs. system integration
Test Planning
A Test Plan:
covers all types and phases

of testing
guides the entire testing
process
who, why, when, what
developed as
requirements, functional
specification, and highlevel design are developed
should be done before
implementation starts
6

AMBIKA J Asst.Professor Kings College Of Engineering

♦

A test plan includes:
 test objectives
 schedule and logistics
 test strategies
 test cases
 procedure
 data
 expected result
 procedures for handling
problems
Fault Handling Techniques
Fault Handling

Fault Avoidance

Design
Methodology
Verification

Fault Detection

Atomic
Transactions

Reviews

Modular
Redundancy

Configuration
Management
Debugging

Testing

7

Fault Tolerance

Integration
Unit
Testing
Testing
AMBIKA J Asst.Professor Kings College Of Engineering

System
Testing

Correctness
Debugging

Performance
Debugging
Unit Testing:
Individual subsystem
Carried out by developers
Goal: Confirm that subsystems is correctly coded and
carries out the intended functionality
Integration Testing:
Groups of subsystems (collection of classes) and
eventually the entire system
Carried out by developers
Goal: Test the interface among the subsystem

AMBIKA J Asst.Professor Kings
College Of Engineering

8
System Testing:
The entire system
Carried out by developers
Goal: Determine if the system meets the requirements
(functional and global)
Acceptance Testing:
Evaluates the system delivered by developers
Carried out by the client. May involve executing typical
transactions on site on a trial basis
Goal: Demonstrate that the system meets customer
requirements and is ready to use
Implementation (Coding) and testing go hand in hand

AMBIKA J Asst.Professor Kings
College Of Engineering

9
Unit Testing
Informal:
Incremental coding
Static Analysis:
Hand execution: Reading the source code
Walk-Through (informal presentation to others)
Code Inspection (formal presentation to others)
Automated Tools checking for
syntactic and semantic errors
departure from coding standards
Dynamic Analysis:
Black-box testing (Test the input/output behavior)
White-box testing (Test the internal logic of the subsystem or
object)
Data-structure based testing (Data types determine test cases)
10

AMBIKA J Asst.Professor Kings College Of Engineering
Black-box Testing
 Focus: I/O behavior. If for any given input, we can predict the output, then the

module passes the test.
 Almost always impossible to generate all possible inputs ("test cases")
 Goal: Reduce number of test cases by equivalence partitioning:
 Divide input conditions into equivalence classes
 Choose test cases for each equivalence class. (Example: If an object is
supposed to accept a negative number, testing one negative number is
enough)

11

AMBIKA J Asst.Professor Kings College Of Engineering
Black-box Testing (Continued)
 Selection of equivalence classes (No rules, only guidelines):
 Input is valid across range of values. Select test cases from 3 equivalence

classes:
 Below the range
 Within the range
 Above the range
 Input is valid if it is from a discrete set. Select test cases from 2 equivalence
classes:
 Valid discrete value
 Invalid discrete value
 Another solution to select only a limited amount of test cases:
 Get knowledge about the inner workings of the unit being tested => whitebox testing
12

AMBIKA J Asst.Professor Kings College Of Engineering
White-box Testing
 Focus: Thoroughness (Coverage). Every statement in the

component is executed at least once.
 Four types of white-box testing
 Statement Testing
 Loop Testing
 Path Testing
 Branch Testing

13

AMBIKA J Assistant Professor / Kings College Of Engineering, Thanjavur.
White-box Testing (Continued)
 Statement Testing (Algebraic Testing): Test single statements
 Loop Testing:
 Cause execution of the loop to be skipped completely. (Exception: Repeat
loops)
 Loop to be executed exactly once
 Loop to be executed more than once
 Path testing:
 Make sure all paths in the program are executed
 Branch Testing (Conditional Testing): Make sure that each

possible outcome from a condition is tested at least once

14

AMBIKA J Asst.Professor Kings College Of Engineering
White-Box Testing

Loop Testing
[Pressman]

Simple
loop
Nested
Loops
Concatenated
Loops
15

AMBIKA J Asst.Professor Kings College Of Engineering
Why is loop testing important?

Unstructured
Loops
THANK U

16

AMBIKA J Asst.Professor Kings College Of Engineering

More Related Content

What's hot

White box black box & gray box testing
White box black box & gray box testingWhite box black box & gray box testing
White box black box & gray box testingHimanshu
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testingMani Kanth
 
Testing, black ,white and gray box testing
Testing, black ,white and gray box testingTesting, black ,white and gray box testing
Testing, black ,white and gray box testingAamir Shakir
 
Software testing introduction
Software testing introductionSoftware testing introduction
Software testing introductionSriman Eshwar
 
New software testing-techniques
New software testing-techniquesNew software testing-techniques
New software testing-techniquesFincy V.J
 
An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing BugRaptors
 
White Box Testing
White Box TestingWhite Box Testing
White Box TestingAlisha Roy
 
Quality assurance tests
Quality assurance testsQuality assurance tests
Quality assurance testsamitzore
 
Software testing
Software testingSoftware testing
Software testingBala Ganesh
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing TechniquesKiran Kumar
 
Black box testing or behavioral testing
Black box testing or behavioral testingBlack box testing or behavioral testing
Black box testing or behavioral testingSlideshare
 
White box testing-200709
White box testing-200709White box testing-200709
White box testing-200709pragati3009
 
Software Testing - Day Two
Software Testing - Day TwoSoftware Testing - Day Two
Software Testing - Day TwoGovardhan Reddy
 

What's hot (19)

White box black box & gray box testing
White box black box & gray box testingWhite box black box & gray box testing
White box black box & gray box testing
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
 
Unit testing
Unit testing Unit testing
Unit testing
 
Testing, black ,white and gray box testing
Testing, black ,white and gray box testingTesting, black ,white and gray box testing
Testing, black ,white and gray box testing
 
Software testing introduction
Software testing introductionSoftware testing introduction
Software testing introduction
 
New software testing-techniques
New software testing-techniquesNew software testing-techniques
New software testing-techniques
 
An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing
 
Unit testing
Unit testingUnit testing
Unit testing
 
Introduction to White box testing
Introduction to White box testingIntroduction to White box testing
Introduction to White box testing
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
 
Quality assurance tests
Quality assurance testsQuality assurance tests
Quality assurance tests
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Software testing
Software testingSoftware testing
Software testing
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Black box testing or behavioral testing
Black box testing or behavioral testingBlack box testing or behavioral testing
Black box testing or behavioral testing
 
Testing
TestingTesting
Testing
 
White box testing-200709
White box testing-200709White box testing-200709
White box testing-200709
 
Software Testing - Day Two
Software Testing - Day TwoSoftware Testing - Day Two
Software Testing - Day Two
 
White box testing
White box testingWhite box testing
White box testing
 

Viewers also liked

La notes (1 7 & 9)
La notes (1 7 & 9)La notes (1 7 & 9)
La notes (1 7 & 9)hakim azman
 
Lesson 1. key concepts in language testing jose martin serna valdeolivar
Lesson 1.  key concepts in language testing jose martin serna valdeolivarLesson 1.  key concepts in language testing jose martin serna valdeolivar
Lesson 1. key concepts in language testing jose martin serna valdeolivarJosé Martín Serna Valdeolivar
 
Language Assessment : Kinds of tests and testing
Language Assessment : Kinds of tests and testingLanguage Assessment : Kinds of tests and testing
Language Assessment : Kinds of tests and testingMusfera Nara Vadia
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual TestingDirecti Group
 
Prototyping and Usability Testing your designs
Prototyping and Usability Testing your designsPrototyping and Usability Testing your designs
Prototyping and Usability Testing your designsElizabeth Snowdon
 
Achievement tests
Achievement testsAchievement tests
Achievement testsManu Sethi
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testingOana Feidi
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts pptRathna Priya
 

Viewers also liked (12)

Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
 
La notes (1 7 & 9)
La notes (1 7 & 9)La notes (1 7 & 9)
La notes (1 7 & 9)
 
Lesson 1. key concepts in language testing jose martin serna valdeolivar
Lesson 1.  key concepts in language testing jose martin serna valdeolivarLesson 1.  key concepts in language testing jose martin serna valdeolivar
Lesson 1. key concepts in language testing jose martin serna valdeolivar
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
 
Language Assessment : Kinds of tests and testing
Language Assessment : Kinds of tests and testingLanguage Assessment : Kinds of tests and testing
Language Assessment : Kinds of tests and testing
 
Test planning
Test planningTest planning
Test planning
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
 
Prototyping and Usability Testing your designs
Prototyping and Usability Testing your designsPrototyping and Usability Testing your designs
Prototyping and Usability Testing your designs
 
Achievement tests
Achievement testsAchievement tests
Achievement tests
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testing
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
 

Similar to Testing ppt

Similar to Testing ppt (20)

Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
 
Testing
TestingTesting
Testing
 
Testing
TestingTesting
Testing
 
Role+Of+Testing+In+Sdlc
Role+Of+Testing+In+SdlcRole+Of+Testing+In+Sdlc
Role+Of+Testing+In+Sdlc
 
Software testing (2)
Software testing (2)Software testing (2)
Software testing (2)
 
Software Testing Tecniques
Software Testing TecniquesSoftware Testing Tecniques
Software Testing Tecniques
 
CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4
 
Unit testing
Unit testingUnit testing
Unit testing
 
Defect Testing in Software Engineering SE20
Defect Testing in Software Engineering SE20Defect Testing in Software Engineering SE20
Defect Testing in Software Engineering SE20
 
Lecture (Software Testing).pptx
Lecture (Software Testing).pptxLecture (Software Testing).pptx
Lecture (Software Testing).pptx
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Ch23
Ch23Ch23
Ch23
 
Slides chapters 13-14
Slides chapters 13-14Slides chapters 13-14
Slides chapters 13-14
 
Slides1 - testing
Slides1 - testingSlides1 - testing
Slides1 - testing
 
object oriented system analysis and design
object oriented system analysis and designobject oriented system analysis and design
object oriented system analysis and design
 
Testing
TestingTesting
Testing
 
Software testing for biginners
Software testing for biginnersSoftware testing for biginners
Software testing for biginners
 
Chapter 3 SOFTWARE TESTING PROCESS
Chapter 3 SOFTWARE TESTING PROCESSChapter 3 SOFTWARE TESTING PROCESS
Chapter 3 SOFTWARE TESTING PROCESS
 
Embedded SW Testing
Embedded SW TestingEmbedded SW Testing
Embedded SW Testing
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 

Testing ppt

  • 2. Outline  Terminology  Types of errors  Dealing with errors  Quality assurance vs Testing  Component Testing  Unit testing  Integration testing  Testing Strategy  Design Patterns & Testing 2 AMBIKA J Asst.Professor Kings College Of Engineering  System testing  Function testing  Structure Testing  Performance testing  Acceptance testing  Installation testing
  • 3. Some Observations It is impossible to completely test any nontrivial module or any system Theoretical limitations: Halting problem Practial limitations: Prohibitive in time and cost Testing can only show the presence of bugs, not their absence (Dijkstra) 3 AMBIKA J Asst.Professor Kings College Of Engineering loop 200 times
  • 4. Testing Activities Global Requirements Validated Functioning System PerformanceSystem Client’s Understanding of Requirements User Environment Accepted System Test Functional Test Usable System Tests by client Tests by client Tests by developer Tests by developer User’s understanding Tests (?) by user Tests (?) by user 4 AMBIKA J Asst.Professor Kings College Of Engineering Use
  • 5. Level of abstraction Levels of Testing in V Model system integration system requirements software requirements acceptance test software integration an nd ea lyz ana tes t preliminary design component test te ig des di n teg ra detailed design n code & debug unit test Time 5 AMBIKA J Asst.Professor Kings College Of Engineering N.B.: component test vs. unit test; acceptance test vs. system integration
  • 6. Test Planning A Test Plan: covers all types and phases of testing guides the entire testing process who, why, when, what developed as requirements, functional specification, and highlevel design are developed should be done before implementation starts 6 AMBIKA J Asst.Professor Kings College Of Engineering ♦ A test plan includes:  test objectives  schedule and logistics  test strategies  test cases  procedure  data  expected result  procedures for handling problems
  • 7. Fault Handling Techniques Fault Handling Fault Avoidance Design Methodology Verification Fault Detection Atomic Transactions Reviews Modular Redundancy Configuration Management Debugging Testing 7 Fault Tolerance Integration Unit Testing Testing AMBIKA J Asst.Professor Kings College Of Engineering System Testing Correctness Debugging Performance Debugging
  • 8. Unit Testing: Individual subsystem Carried out by developers Goal: Confirm that subsystems is correctly coded and carries out the intended functionality Integration Testing: Groups of subsystems (collection of classes) and eventually the entire system Carried out by developers Goal: Test the interface among the subsystem AMBIKA J Asst.Professor Kings College Of Engineering 8
  • 9. System Testing: The entire system Carried out by developers Goal: Determine if the system meets the requirements (functional and global) Acceptance Testing: Evaluates the system delivered by developers Carried out by the client. May involve executing typical transactions on site on a trial basis Goal: Demonstrate that the system meets customer requirements and is ready to use Implementation (Coding) and testing go hand in hand AMBIKA J Asst.Professor Kings College Of Engineering 9
  • 10. Unit Testing Informal: Incremental coding Static Analysis: Hand execution: Reading the source code Walk-Through (informal presentation to others) Code Inspection (formal presentation to others) Automated Tools checking for syntactic and semantic errors departure from coding standards Dynamic Analysis: Black-box testing (Test the input/output behavior) White-box testing (Test the internal logic of the subsystem or object) Data-structure based testing (Data types determine test cases) 10 AMBIKA J Asst.Professor Kings College Of Engineering
  • 11. Black-box Testing  Focus: I/O behavior. If for any given input, we can predict the output, then the module passes the test.  Almost always impossible to generate all possible inputs ("test cases")  Goal: Reduce number of test cases by equivalence partitioning:  Divide input conditions into equivalence classes  Choose test cases for each equivalence class. (Example: If an object is supposed to accept a negative number, testing one negative number is enough) 11 AMBIKA J Asst.Professor Kings College Of Engineering
  • 12. Black-box Testing (Continued)  Selection of equivalence classes (No rules, only guidelines):  Input is valid across range of values. Select test cases from 3 equivalence classes:  Below the range  Within the range  Above the range  Input is valid if it is from a discrete set. Select test cases from 2 equivalence classes:  Valid discrete value  Invalid discrete value  Another solution to select only a limited amount of test cases:  Get knowledge about the inner workings of the unit being tested => whitebox testing 12 AMBIKA J Asst.Professor Kings College Of Engineering
  • 13. White-box Testing  Focus: Thoroughness (Coverage). Every statement in the component is executed at least once.  Four types of white-box testing  Statement Testing  Loop Testing  Path Testing  Branch Testing 13 AMBIKA J Assistant Professor / Kings College Of Engineering, Thanjavur.
  • 14. White-box Testing (Continued)  Statement Testing (Algebraic Testing): Test single statements  Loop Testing:  Cause execution of the loop to be skipped completely. (Exception: Repeat loops)  Loop to be executed exactly once  Loop to be executed more than once  Path testing:  Make sure all paths in the program are executed  Branch Testing (Conditional Testing): Make sure that each possible outcome from a condition is tested at least once 14 AMBIKA J Asst.Professor Kings College Of Engineering
  • 15. White-Box Testing Loop Testing [Pressman] Simple loop Nested Loops Concatenated Loops 15 AMBIKA J Asst.Professor Kings College Of Engineering Why is loop testing important? Unstructured Loops
  • 16. THANK U 16 AMBIKA J Asst.Professor Kings College Of Engineering