Professional Documents
Culture Documents
STM Unit3
STM Unit3
STM Unit3
DOMAIN TESTING
Domain
• DOMAIN is a set of possible values of an
independent variable.
Age Domain Is 1-120 Yrs
Marks Domain Is 0-100 Marks
Domain Testing
• Domain Testing determines whether the
classification is or is not correct.
• Thus domain testing involves classifying input
space into set of partitions, selecting input
values from each such partitions, supplying
these inputs to a programs, and checking
whether the programs shows expected
behavior.
Schematic representation of
Domain Testing
DO CASE2
DO CASE3
DO CASE N
•Structural knowledge is not needed for this model-only a consistent,
complete specification of input values for each case.
•We can infer that for each case there must be at least one path to
process that case
Domain Testing Model
D1
D2
INPUT CLASSIFY DO CASE 1 OUTPUT
D3
(x,y,z,…) Dn { Outcome }
DO CASE 2
(1, 2, 3, 4, 5,…)
DO CASE 3
DO CASE n
D1 MIN D2 MAX D3
MIN MAX
D1 D2 D3
D1 MIN
D2 MAX
D3
V1 D11 D12
V2 D21 D22
Linear & Non Linear Boundaries
linear
Non linear
Complete Boundaries
• Nice domain boundaries are complete in that
they span the number space from plus to
minus infinity in all dimensions.
A
E
D
A
B B
C C
E
D
Orthogonal Boundaries
U
Ugly Domains
Making it convex
Simplifying the Topology
Extreme
point
Boundary point
Epsilon neighborhood
On Points
Generic Domain Bugs
Shifted boundaries
Tilted boundaries
Generic Domain Bugs-
continued.,
Open/closed error
Extra boundary
Missing Boundary
Testing one dimensional domains-
open boundaries
B A
• Domain
• Range