Back Forward About Test Case rules
 

SysAdmin category
  1. About
  2. New
  3. tab1
  4. tab2
  5. tab3
  6. tab4
  7. tab5
  8. History
  9. More...
New  Inputs    Results   History

Purpose

The Run Rule option enables the unit testing of a rule by itself before testing it within the context of an entire application. If your operator ID has the AutomatedTesting privilege through an access role, you can save the unit testing data you used for certain rule types as test case rules. Then, the next time you test that rule, you can run the test case rather than entering the test data again.

NoteYou must have the AutomatedTesting privilege to be able to work with test case rules. For information about how to enable this privilege, see About Automated Unit Testing.

Test case rules can be created for the following rule types:

Test case rules contain both the test data and the results of that data. When you run a test case, Process Commander uses the saved test data when running the rule and then compares the results to those saved in the test case. If the results do not match, investigate the tested rule to see what changed and determine whether there is a problem to be resolved.

The key to a test case rule includes the pxInsName of the rule it tests. If a tested rule is qualified by circumstance or time, create separate test cases for each circumstance.

When you have more than one test case that you want to run together or if you want to run a test case in the background, create a unit test suite rule and then use the fields on the Schedule gadget of the Automated Unit Testing landing page to run the suite. For more details about unit test suites, see About Unit Test Suite rules and consult the articles in the Testing Applications category of the Pega Developer Network.

Access

Use the Automated Unit Tests gadget of the Automated Unit Testing landing page to see the test case rules that are available to you. Additionally, you can work with the test case rules associated with a specific rule by using the Test Cases tab of the associated rule.

Where referenced

Test case rules are referenced in:

Category

Test case rules are instances of the Rule-AutoTest-Case class. They belong to the SysAdmin category.

SysAdmin category
Help System home pageHelp Home