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.

Appendix B: Guidelines for filling in “all-pairs combination”<br />

table (continued)<br />

7. The first row has the variable names (with the one with max test cases first <strong>and</strong><br />

the one with min test cases last). Each succeeding row (except blank rows) will<br />

contain a combination that addresses “total (total-1)/2” pairs where ‘total’ = total<br />

number of variables.<br />

8. We begin filling the table by filling in the column corresponding to first variable<br />

first. To do that, follow the following steps:<br />

a. Repeat the first test case value of the first variable as many times as is the<br />

value of Max 2 (number of test case values of second variable) in the first<br />

column. Call this set 1.<br />

b. Leave a blank row after the set in case you need to add extra test cases<br />

later.<br />

c. Similarly, repeat the second test case value of the first variable as many<br />

times as is the value of Max 2 in the first column starting from the row<br />

that is after the blank row succeeding the first set. Now you have set 2.<br />

d. Do the above with the remaining test case values of first variable. Leave a<br />

blank row after every set so that incase you need to add an extra test case<br />

here, you wouldn’t have to shift the rows up <strong>and</strong> down. By doing the<br />

above you will have filled in column corresponding to the first variable<br />

completely. Now, we have as many sets as the value of Max 1 is. You just<br />

now have to deal with the other variables. Please note that number of rows<br />

keep increasing progressively as you add blank rows. Make sure you don’t<br />

number the blank rows.<br />

9. The heuristic of filling in test case values of second variable (values in cells<br />

corresponding to second column) is to list the test case values of the second<br />

variable one after the other starting from value 1 <strong>and</strong> ending at last value in the<br />

column corresponding to second variable. By doing this for every set, you<br />

eventually will fill the column corresponding to the second variable completely.<br />

10. If there is a third variable then for the first set in the column corresponding to the<br />

third variable, list the test cases in the order, that is, first test case followed by the<br />

second, so on <strong>and</strong> so forth until you reach the last test case. If the number of test<br />

cases of the third variable is less than the number of test cases of the second then<br />

you will have at least one cell in the set that remains unfilled by the procedure<br />

described above. In such an event, just repeat the sequence of the set again until<br />

you have filled all cells in the set.<br />

11. By now, you will have filled in all the cells belonging to set 1 of the third<br />

variable. Now, start changing the order of the values for every successive set for<br />

the third variable. One way to do this is to imagine that the values are connected<br />

© Sowmya Padmanabhan, 2003<br />

2

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

Saved successfully!

Ooh no, something went wrong!