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 A: Equivalence Class Analysis Heuristics (continued)<br />

Heuristic 3: Enumerated field<br />

Analysis:<br />

� Such variables usually are fields representing menus, drop-down combo<br />

boxes, lists or radio buttons or any form of fixed number of available choices.<br />

Such values are enumerated values (set of options/choices) <strong>and</strong> the<br />

corresponding variable is called a enumerated variable.<br />

� Every option is an equivalence class in its own right since each option has the<br />

program/function respond differently. Depending on the time available, you<br />

would either test for all options or would r<strong>and</strong>omly pick some options for test.<br />

� Look for a grouping strategy within the list of options, if you can find one,<br />

then form partitions (sub-domains) <strong>and</strong> select a test case from each partition.<br />

Step 1: Identify the risks associated with this variable.<br />

• Failure to process each of the values in the enumerated set correctly<br />

• Mish<strong>and</strong>ling of values outside the enumerated set.<br />

Step 2: Determine the input domain<br />

The input domain is the set of values that can ever be inputted to the enumerated<br />

field.<br />

Step 3: Partition the input domain based on the identified risks.<br />

The following is the corresponding equivalence class table for this example:<br />

© Sowmya Padmanabhan, 2003<br />

5

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

Saved successfully!

Ooh no, something went wrong!