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.

Appendix E: Guidelines for Filling in “All-Pairs Combination” Table 1<br />

1. Select the variables that you want to combine using all-pairs combination<br />

technique. Only independent variables should be combined using all-pairs<br />

technique. Do not include dependent variables because when such variables are<br />

combined with the remaining variables using all-pairs combination technique will<br />

lead to many impossible combinations due to one or more dependency<br />

relationships amongst the variables. Test dependent variables separately <strong>and</strong> use<br />

separate combinations that test for specific dependencies.<br />

2. For each independent variable, decide which test cases would be interesting <strong>and</strong><br />

useful enough to be included in all-pairs combination. Typically such test cases<br />

are the ones, which when tested individually, the program is expected to give a<br />

reasonably acceptable outcome or in other words the program is expected to<br />

process or h<strong>and</strong>le them correctly. Test cases that were included in the equivalence<br />

class analysis table intentionally to see how the program mish<strong>and</strong>les them, also<br />

called error h<strong>and</strong>ling test cases, are not good choices for all-pairs combination.<br />

This is because including such test cases will render other acceptable pairs in the<br />

corresponding combination(s) in all-pairs table useless. Error h<strong>and</strong>ling cases<br />

should be tested separately <strong>and</strong> if required one might combine error h<strong>and</strong>ling test<br />

cases of multiple variables together to see how the program h<strong>and</strong>les multiple<br />

faults at the same time.<br />

3. Sort the independent variables in the descending order of the number of<br />

corresponding representatives or test cases chosen. Get the first two in the sorted<br />

list <strong>and</strong> assign the number of test case values they have to Max 1 <strong>and</strong> Max 2<br />

respectively.<br />

4. Give symbolic names to test cases of each variable. For example, represent the<br />

test cases of a variable ‘x’ as X1, X2…Xn<br />

5. No. of rows in your table will be (Max 1 x Max 2), which is the minimal number<br />

of combinations you will have with all-pairs technique. The total no. of rows will<br />

also include blank rows in between which will be in addition to the number of<br />

rows corresponding to combinations of test cases (Max1 x Max2). We might not<br />

be able to fit in all pairs of all variables in this minimal number of combinations,<br />

in which case, additional combinations might have to be added (more on this in<br />

step 12). For now, let us work with Max1 x Max2 being the number of<br />

combinations.<br />

6. No. of columns = total number of variables + 1 (to hold the test case number).<br />

“Test case#” goes in the cell in first row <strong>and</strong> first column.<br />

1<br />

These guidelines were adapted from “Lessons Learned in Software <strong>Testing</strong>” by Kaner, Bach <strong>and</strong><br />

Pettichord.<br />

© Sowmya Padmanabhan, 2003<br />

1

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

Saved successfully!

Ooh no, something went wrong!