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

Heuristic 4: Variables that have to be equal<br />

� Consider two variables ‘a’ <strong>and</strong> ‘b’. We know that at some point in the<br />

processing of the function to which they belong, value in ‘a’ is the value in<br />

‘b’. Manipulate ‘b’ to see what you can do to ‘a’.<br />

Analysis:<br />

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

• Failure to process identical values of ‘a’ <strong>and</strong> ‘b’ correctly<br />

• Mish<strong>and</strong>ling of non-identical values<br />

• Mish<strong>and</strong>ling of identical values but of data types other than what the<br />

values should be of.<br />

Step 2: Determine the input domain<br />

The input domain is the set of all possible ‘a’ <strong>and</strong> ‘b’ value pairs.<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 />

7

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

Saved successfully!

Ooh no, something went wrong!