Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>While it's possible to create lots of test data and see what happens, it's more efficient to try to minimize the data being used.</p> <p>From a typical QA perspective, you would want to identify different classifications of inputs. Produce a set of input values for each classification and determine the appropriate outputs. </p> <p>Here's a sample of classes of input values</p> <ul> <li>valid triangles with small numbers such as (1 billion, 2, billion, 2 billion)</li> <li>valid triangles with large numbers such as (0.000001, 0.00002, 0.00003)</li> <li>valid obtuse triangles that are 'almost'flat such as (10, 10, 19.9999)</li> <li>valid acute triangles that are 'almost' flat such as (10, 10, 0000001)</li> <li>invalid triangles with at least one negative value</li> <li>invalid triangles where the sum of two sides equals the third</li> <li>invalid triangles where the sum of two sides is greater than the third</li> <li>input values that are non-numeric</li> </ul> <p>...</p> <p>Once you are satisfied with the list of input classifications for this function, then you can create the actual test data. Likely, it would be helpful to test all permutations of each item. (e.g. (2,3,4), (2,4,3), (3,2,4), (3,4,2), (4,2,3), (4,3,2)) Typically, you'll find there are some classifications you missed (such as the concept of inf as an input parameter).</p> <p>Random data for some period of time may be helpful as well, that can find strange bugs in the code, but is generally not productive.</p> <p>More likely, this function is being used in some specific context where additional rules are applied.(e.g. only integer values or values must be in 0.01 increments, etc.) These add to the list of classifications of input parameters.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload