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.

e selected (Beizer, 1995; Collard, personal communication, July 22, 2003; Hamlet<br />

& Taylor, 1990; Kaner, 2002b; Kaner & Bach, 2004; Myers, 1979). An example is<br />

selection of test data lying on the boundaries of equivalence classes.<br />

However, Hamlet <strong>and</strong> Taylor (1990) <strong>and</strong> Kaner <strong>and</strong> Bach (2004) have not<br />

specifically described forming partitions or equivalence classes based on risks or<br />

anticipated failures. Kaner <strong>and</strong> Bach (2004) identified specific tasks involved in the<br />

risk-based domain testing approach:<br />

The risk-based approach looks like this:<br />

– Start by identifying a risk (a problem the program might have).<br />

– Progress by discovering a class (an equivalence class) of tests that could<br />

expose the problem.<br />

– Question every test c<strong>and</strong>idate<br />

• What kind of problem do you have in mind?<br />

• How will this test find that problem? (Is this in the right class?)<br />

• What power does this test have against that kind of problem?<br />

• Is there a more powerful test? A more powerful suite of tests? (Is this<br />

the best representative?)<br />

– Use the best representatives of the test classes to expose bugs. (part 5,<br />

slide 3)<br />

Hamlet <strong>and</strong> Taylor (1990) suggested development of fault-revealing<br />

subdomains. They described the partition testing method to doing domain testing as<br />

a failure-based approach. They also asserted that a good partition testing method<br />

will help create subdomains, each of which is associated with a particular failure,<br />

<strong>and</strong> that testing samples from a subdomain should enable detection of the<br />

associated failure.<br />

According to Kaner (2002b), risk-based domain testing leads to<br />

development of powerful tests <strong>and</strong> optimal prioritization, assuming that correct<br />

risks are first identified <strong>and</strong> then prioritized. The hazard with using the risk-based<br />

approach is that testers might miss certain risks because they might not think they<br />

are likely or just not be aware of them (Kaner, 2002b).<br />

22

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

Saved successfully!

Ooh no, something went wrong!