This article will help you learn parameter definition strategies for creating the most efficient set of TCD tests.


Long lists of Values always result in large numbers of tests

Reason:


Instead, define Equivalence Classes and enter them into Test Case Designer.

Depending upon the business rules and behaviors of the application you are testing, you might break your equivalence classes of cities into size-based categories or location-based categories such as these:

and/or

If you reduced your list of city-related Values from 500 to 4, you would have far fewer pairwise tests generated when you click the Scenarios button.


For more information:

  1. Create 2 test models in Test Case Designer
  2. Call the first one “2p20v” (this automatically generates a model with 2 Parameters with 20 Values each)
  3. Call the second one “20p2v.”
  4. The first model has only 400 possible tests. All 400 tests are needed to achieve pairwise coverage.
  5. The second model has over a million possible tests. Only 11 tests are needed for pairwise coverage!