Академический Документы
Профессиональный Документы
Культура Документы
Testing Classification
l
January 16
Unit Testing
Subsystem Testing
Integration Testing
Application Testing
Regression Testing
SISE
Integration Testing
l
Component
(Focus of integration)
System
(Scope of integration)
Method
Class
Instance variables
Intraclass messages
Class
Cluster
Interclass messages
Cluster
Subsystem
Interclass messages
Interpackage messages
Subsystem
System
Interprocces communication
Remote procedure call
OS services
January 16
SISE
January 16
SISE
Integration in OO Systems
l
January 16
Within a class
Within a class hierarchy
Between a client and its servers
Within a cluster of related classes
Within a subsystem
Within an application system
SISE
Integration Faults
l
l
l
l
l
January 16
SISE
Integration Patterns - 1
l
l
l
l
l
January 16
SISE
Integration Patterns - 2
l
l
l
January 16
SISE
Scope-specific Considerations
l
Classes
l The system is the class under test
l The components to be integrated are CUT methods,
superclass methods, instance variables, and
parameters in messages received and sent by the
CUT
l Testing of class responsibilities is so closely coupled
to class integration that it does not make sense to
treat the two as separate test design patterns
January 16
SISE
10
Cluster-specific Considerations
l
l
l
January 16
SISE
12
System-specific Considerations
l
Subsystem/system
l The scope of an implementation under test is often
larger than of a single class or small cluster
l At subsystem and system scopes, the goal of
integration testing is achieving a sufficient stable
system so that responsibility testing at system scope
may proceed smoothly
January 16
SISE
13
System-specific Considerations 2
l
l
l
l
l
l
l
January 16
SISE
14
January 16
15
Intent
l
Context
l
January 16
17
Fault Model
l
l
Strategy
l
l
January 16
SISE
18
January 16
SISE
19
Entry Criteria
l All components have passed component scope
testing
Exit Criteria
l The test suite passes
January 16
SISE
20
Consequences
l
Consequences
l Debugging can be difficult because you receive fewer
clues about fault locations
l Even if SUT passes, many interfaces faults can hide
and waylay subsequent system scope testing
l Under favourable circumstances it can result in quick
completion of integration testing
l Few (if any) integration drivers or stubs are developed
Known Uses
l It is used in Backbone Integration
January 16
SISE
21
Integration Testing
l
Strategy
l
l
January 16
23
Dependency Analysis
l
January 16
SISE
24
Bottom-up Integration
l
Intent
l
Context
l
l
January 16
28
Strategy
l
Test Model
l
l
Dependency tree
Responsibility for each component
Test Procedure
l
l
January 16
29
Bottom-up Integration
January 16
SISE
31
Bottom-up Integration
January 16
SISE
32
Bottom-up Integration
January 16
SISE
33
Bottom-up Integration
l
Automation
l It is necessary one driver for each component or
component that is the root of a subtree in the
dependency relationship
l Avoid combining the test suites for components that
can be tested by individual drivers into a single driver
l The drivers may be revised as the class under test is
revised
January 16
SISE
34
Entry Criteria
l
Exit Criteria
l
l
l
January 16
Each driver component meets the exit criteria for its test
pattern
The interface to each component has been exercised at
least once
Integration testing is complete when all root-level
components pass their test suites
SISE
35
Consequences
l
Disadvantages
l
l
l
Advantages
l
l
l
l
January 16
36
Top-down Integration
l
Intent
l Demonstrate stability by adding components to the
SUT in control hierarchy order, beginning with the toplevel control objects
Context
l Control objects typically implement essential and
nontrivial control strategies and therefore present
relatively high risk
l Top-down integration focuses on control components
first, making the demonstration of system scope endto-end operability a high priority
January 16
SISE
37
January 16
SISE
38
2.
3.
January 16
39
SISE
January 16
40
January 16
SISE
41
January 16
SISE
43
Automation
l
l
January 16
SISE
44
Entry Criteria
l
Exit Criteria
l
l
l
January 16
SISE
45
Consequences
l
Disadvantages
l
Advantages
l
l
l
January 16
46