Issues in OO Testing
Issues in OO Testing
Issues in OO Testing
Chapter 16
OO context
programming language
ISS–2
Problems to address
Levels of testing
What is a unit?
Implications of composition strategy of OO
Compare to functional decomposition
OO programs
Inheritance, encapsulation and polymorphism
ISS–3
OO unit
Two definitions
A unit is the smallest program component that can be
compiled and executed
A unit is a program component that would be developed by
one person
Could be a sub-part of one class
ISS–4
Unit is 1-person development
ISS–5
Unit is compilable & executable
ISS–6
Composition & Encapsulation
ISS–7
SWW– SSD 1
ISS–8
SWW– SSD 2
ISS–9
SWW – SSD 3
ISS–10
Complication of inheritance
ISS–11
Complication of polymorphism
ISS–12
Levels of testing – 1
Unit testing
Class
Integration
System
ISS–13
Levels of testing – 2
Unit testing
Integration
Interclass testing
System
At port level
ISS–14
Dataflow testing
ISS–15