Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 6

SOFTWARE TESTING

(DOMAIN ANALYSIS
TESTING)
(EXAMPLES ONLY)
Engr. Sajid Saleem
OUTLINE
 Binders DAT Matrix Example 1
 When the boundary is closed (defined by an operator containing an equality, i.e., ≤, ≥ or =) so that points on the
boundary are included in the domain, then an on point lies on the boundary and is included within the domain. An off
point lies outside the domain.
1. For each relational condition (≥, >, ≤, or <) choose one on point and one off point.
2. For each strict equality condition (=) choose one on point and two off points, one slightly less than the
conditional value and one slightly greater than the value.
 Binders DAT Matrix Example 2
 When the boundary is open (defined by an inequality operator < or >) so that points on the boundary are not included
in the domain, then an on point lies on the boundary but is not included within the domain. An off point lies inside the
domain.
1. For each relational condition (≥, >, ≤, or <) choose one on point and one off point.
2. For each strict equality condition (=) choose one on point and two off points, one slightly less than the
conditional value and one slightly greater than the value.
 Binders DAT Matrix Example 3
 When the boundary is open (defined by an inequality operator < or >) so that points on the boundary are not included
in the domain, then an on point lies on the boundary but is not included within the domain. An off point lies inside the
domain.
2
1. For each relational condition (≥, >, ≤, or <) choose one on point and one off point.
BINDERS DAT MATRIX
EXAMPLE 1
Q) Construct Test cases Using Binders Domain Testing matrix on a water well with the following parameters.
 depth <= 10 ft and >=3 ft. Typical depth is 5 ft. Variable / Condition
Test cases
 length <= 25 ft and >=10 ft. Typical length is 15 ft. Type 1 2 3 4 5 6 7 8 9 10 11 12
 width <= 10 ft and >=5 ft. Typical width is 7 ft. Depth <=10 On 10
Off 12
>=3 On 3
Off 2
Having defined these points, the 1x1 ("one-by-one") Typical In 5 5 5 5 5 5 5 5
domain analysis technique instructs us to choose these Length <=25 On 25
test cases: Off 26
>=10 On 10
1. For each relational condition (≥, >, ≤, or <) choose Off 8
one on point and one off point. Typical In 15 15 15 15 15 15 15 15
Width <=10 On 10
2. For each strict equality condition (=) choose one on Off 11
point and two off points, one slightly less than the >=5 On 5
Off 4
conditional value and one slightly greater than the Typical In 7 7 7 7 7 7 7 7
value. Expected Result Valid Invalid Valid Invalid Valid Invalid Valid Invalid Valid Invalid Valid Invalid

{ When the boundary is closed (defined by an operator containing an equality, i.e., ≤, ≥ or =) so that points on the boundary are
3
included in the domain, then an on point lies on the boundary and is included within the domain. An off point lies outside the domain.}
BINDERS DAT MATRIX
EXAMPLE 2
Q) Construct Test cases Using Binders Domain Testing matrix on a water well with the following parameters.
 depth < 10 ft and >3 ft. Typical depth is 5 ft. Variable / Condition
Test cases
 length < 25 ft and >10 ft. Typical length is 15 ft. Type 1 2 3 4 5 6 7 8 9 10 11 12
 width < 10 ft and >5 ft. Typical width is 7 ft. Depth <10 On 10
Off 9
>3 On 3
Off 4
Having defined these points, the 1x1 ("one-by-one")
Typical In 5 5 5 5 5 5 5 5
domain analysis technique instructs us to choose these Length <25 On 25
test cases: Off 24
>10 On 10
1. For each relational condition (≥, >, ≤, or <) choose Off 11
one on point and one off point. Typical In 15 15 15 15 15 15 15 15
Width <10 On 10
2. For each strict equality condition (=) choose one on
Off 9
point and two off points, one slightly less than the >5 On 5
conditional value and one slightly greater than the Off 6
value. Typical In 7 7 7 7 7 7 7 7
Expected Result Invalid Valid Invalid Valid Invalid Valid Invalid Valid Invalid Valid Invalid Valid

{ When the boundary is open (defined by an inequality operator < or >) so that points on the boundary are not included in the domain,
4
then an on point lies on the boundary but is not included within the domain. An off point lies inside the domain.}
BINDERS DAT MATRIX
EXAMPLE 3
Q) Construct Test cases Using Binders Domain Testing matrix on a water well with the following parameters.
 depth < 10 ft and >3 ft. Typical depth is 5 ft. Variable / Condition
Test cases
 length < 25 ft and >10 ft. Typical length is 15 ft. Type 1 2 3 4 5 6 7 8 9 10 11
 width = 10 ft. Typical width is 7 ft. Depth <10 On 10
Off 9
>3 On 3
Off 4
Having defined these points, the 1x1 ("one-by-one")
Typical In 5 5 5 5 5 5 5
domain analysis technique instructs us to choose these Length <25 On 25
test cases: Off 24
>10 On 10
1. For each relational condition (≥, >, ≤, or <) choose Off 11
one on point and one off point. Typical In 15 15 15 15 15 15 15
Width = 10 On 10
2. For each strict equality condition (=) choose one on
Off 9
point and two off points, one slightly less than the Off 11
conditional value and one slightly greater than the Typical In 7 7 7 7 7 7 7 7
value. Expected Result Invalid Invalid Invalid Invalid Invalid Invalid Invalid Invalid Valid Invalid Invalid

{ When the boundary is open (defined by an inequality operator < or >) so that points on the boundary are not included in the domain,
5
then an on point lies on the boundary but is not included within the domain. An off point lies inside the domain.}
THANK YOU

You might also like