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.

that lead to the corresponding output. After they had done this for each output, they<br />

used their brute-force algorithm to form a minimal set of combinations of inputs<br />

that best represent each of the outputs. The two researchers considered their method<br />

better than pairwise or orthogonal testing.<br />

2.03.04 All Pairs Combination<br />

Yet another solution to combinatorial explosion is all pairs combination. This is an<br />

extension of pairwise testing, but it yields more combinations. According to Kaner<br />

et al. (2002), “Every value of every variable is paired with every value of every<br />

other variable in at least one test case” (p. 54). If there are n number of variables in<br />

a program, then combinations generated due to the all pairs combination technique<br />

will contain n*(n-1)/2 pairs in each combination (Kaner et al., 1999).<br />

Cohen, Dalal, Parelius <strong>and</strong> Patton (1996) considered the all pairs approach<br />

to be far better than the orthogonal arrays approach. They noted that in the pairwise<br />

version of orthogonal testing, every pair of values must occur an equal number of<br />

times, which makes this combinatorial approach very difficult to implement in<br />

practice. They gave an example to prove their point. “For example, for 100<br />

parameters with two values each, the orthogonal array requires at least 101 tests,<br />

while 10 test cases are sufficient to cover all pairs” (p. 87). However, this technique<br />

is only applicable to independent variables (Kaner & Bach, 2004, part 19).<br />

2.03.05 Weak Robust Equivalence -Class <strong>Testing</strong><br />

Jorgensen (2002) cited four forms of equivalence class testing involving multiple<br />

variables:<br />

• Weak Normal Equivalence Class <strong>Testing</strong>: It is called normal because only<br />

those test cases that contain valid values for each variable in the input<br />

combination will be considered. It is called weak because not all possible<br />

36

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

Saved successfully!

Ooh no, something went wrong!