Software Testing Techniques
Software Testing Techniques
SOFTWARE ENGINEERING
UNIT 07 : Software Testing Techniques
●
Alpha testing Software developer Independent testing team
●
Beta testing
●
Acceptance testing
Each of these classes is an
equivalence partition where the
program behaves in an System
9999 100000
Choose test cases at the boundary of these sets 10000 50000 99999
Input v alues
testing is to ensure
that the set of test
while bottom < = top
bottom > top
2
the program is 8 4
(if (elemArray [mid]< key
executed at least 5 6
once 9
T1
A
T1 T2
A B
T2
T2 B T3
T3
B C
T3 T4
C
T4
D T5
Le vel 2
stubs
Le vel 3
stubs
Test
drivers
Level N–1 Level N–1 Level N–1
Source Test
Test da ta Oracle
code mana ger
Execution File
Simulator
repor t comparator
The components to be tested are object classes that are
instantiated as objects
Larger grain than individual functions so approaches
to white-box testing have to be extended
No obvious ‘top’ to the system for top-down
integration and testing
Testing operations associated with objects
Testing object classes
Testing clusters of cooperating objects
Testing the complete OO system
Inheritance makes it more difficult to design
object class tests as the information to be
tested is not localised
OOSE UNIT 07 – Software Testing Techniques 25
INTERFACE TESTING
Test
Takes place when modules or cases
sub-systems are integrated to
create larger systems
Objectives are to detect faults due
to interface errors or invalid
assumptions about interfaces
Particularly important for object- A B
oriented development as objects
are defined by their interface
C
Identify scenarios from use-cases and
supplement these with interaction diagrams
that show the objects involved in the scenario
Consider the scenario in the weather station
system where a report is generated
request (report)
acknowledge ()
report ()
summarise ()
send (report)
reply (report)
acknowledge ()