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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2: <strong>Domain</strong> <strong>Testing</strong>: A Literature Review<br />

As discussed in the introductory chapter, since exhaustive testing is impossible we<br />

have to be able to do selective testing, but in a way that the entire population is<br />

represented. Partitioning the input domain <strong>and</strong> selecting best representatives from<br />

each partition is one way to achieve this goal. In this testing strategy, called domain<br />

testing, the three main tasks are:<br />

1. Dividing or partitioning the set of all possible test cases into partitions<br />

based on some criterion.<br />

2. Selecting c<strong>and</strong>idates that best represent each partition.<br />

3. Combining variables in case of programs having multiple variables.<br />

2.01 Partitioning of Input <strong>Domain</strong><br />

This is the process of dividing the input domain or the set of all possible test cases<br />

into partitions such that all test cases in one partition are equivalent to each other<br />

with respect to some criterion. Although most of the literature describes<br />

partitioning of input domain, similar analysis can be applied to the output domain<br />

as well (Kaner et al., 2002; Kaner et al., 1999; Myers, 1979).<br />

According to Kaner et al. (2002), test cases can be grouped into an<br />

equivalence class if they satisfy the following conditions:<br />

“(a) they all test the same thing; (b) if one of them catches a bug, the others<br />

probably will too; <strong>and</strong> (c) if one of them doesn’t catch a bug, the others probably<br />

won’t either” (p. 36).<br />

dimensions:<br />

Partitioning of input domain differs in the literature along the following<br />

� White or Black:<br />

• White-Box <strong>Testing</strong> Approach<br />

o Path Analysis Approach<br />

o Mutation <strong>Testing</strong> Approach<br />

11

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

Saved successfully!

Ooh no, something went wrong!