10.12.2012 Views

Domain Testing: Divide and Conquer - Testing Education

Domain Testing: Divide and Conquer - Testing Education

Domain Testing: Divide and Conquer - Testing Education

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Hardware-related boundaries: boundaries defined by the upper <strong>and</strong><br />

lower bounds of hardware needs <strong>and</strong> requirements.<br />

According to Hutcheson (2003), boundary value analysis is based on the<br />

belief that if a system works correctly for the boundary values, it will also work<br />

correctly for all the values within the range. This makes boundary values the most<br />

important test cases.<br />

Hutcheson (2003) explained that applying boundary value analysis to a<br />

month variable will yield the following six test cases: {0, 1, 2, 11, 12, 13}. The test<br />

cases or data points 1 <strong>and</strong> 12 are minimum <strong>and</strong> maximum values, respectively, that<br />

a month variable can take. Test cases 0 <strong>and</strong> 2 are just outside <strong>and</strong> just inside the<br />

boundary defined by test case 1, respectively. Similarly, test cases 11 <strong>and</strong> 13 are<br />

just inside <strong>and</strong> just outside the boundary defined by test case 12, respectively.<br />

Hutcheson (2003) further noted that test cases 2 <strong>and</strong> 11 seem redundant, as<br />

both of these serve as data points from the region within the two endpoints. The<br />

researcher therefore suggested replacing the two test cases 2 <strong>and</strong> 11 with mid-point<br />

data value 6, which makes {0, 1, 6, 12, 13} the final set of test cases due to<br />

boundary value analysis.<br />

Some other researchers have not recommended using any values other than<br />

those on the boundaries <strong>and</strong> ones that are just beyond the boundaries, since the<br />

others would simply be redundant. According to them, in the aforementioned<br />

example the test case 6 would also be redundant (Kaner et al., 2002; Kaner et al.,<br />

1999; Kaner & Bach, 2003; Myers, 1979).<br />

Jorgensen (2002) pointed out one outst<strong>and</strong>ing disadvantage of boundary<br />

value analysis. This analysis works well only when there are independent variables<br />

that belong to domains with well-defined boundaries.<br />

Jorgensen (2002) gave an example of a function that evaluates the next date<br />

of the current date. Just applying boundary value analysis to the date variable of<br />

this function will miss errors corresponding to that of a leap year. Also, boundary<br />

value analysis cannot be applied to non-linearizable discrete variables.<br />

30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!