Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Auto-generating test cases for a decision table

Updated on September 10, 2021

Summary

In addition to creating test cases manually for a decision table, with Automated Unit Testing, you can iterate through all possible variations of the table values and save those variations as test cases.

Suggested Approach

To auto-generate all possible test cases for a decision table:

  1. Open the decision table rule you want to test.
  2. Click the Run toolbar icon. The Run Rule window opens.
In V6.1, step two is different. To create test cases for a decision tree or decision table in V6.1:
  1. Go to the Test Cases tab of the opened rule.
  2. Click Record New Test Case. The Run Rule window opens.

The rest of the steps in this article are the same for V6.1.

  1. In the Test Page section, choose the auto-generate test cases option and click Generate Test Cases.

zzz

  1. After clicking Generate Test Cases , the New Test Case dialog box appears.

zzz

  1. In the Test Case Prefix field, enter a short string to be used as the prefix for the auto-generated test cases to be created, and an optional description.
  2. Specify the appropriate RuleSet and version for the test cases and click Create.
  3. After clicking Create a table listing all of the auto-generated test cases for the decision table opens. From this table you can choose which test cases are created by selecting the check box next to it.

zzz

  1. After choosing which test cases to create, click Save Test Cases.

Related Topics

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us