You are here: Record management > Unit test rules with the Run action

Designer Studio – How to unit test a rule with the Run Rule feature

The Run toolbar action opens the Run Rule window for the currently displayed rule. You provide test data and then Pega 7 Platform runs the rule and displays the results. If the results are not what you expected, modify the rule and test it again.

The appearance of the Run Rule window varies across rule types, so how you run a rule varies by its type. In general, you complete the following kinds of tasks:

The Run Rule feature uses rule resolution when running the rule. If you click the Run button but a higher version exists of the rule that you currently have open, Pega 7 Platform displays a status message stating it will run the higher version. Accordingly, to test a circumstanced or time-qualified rule, ensure that the circumstances are correct for the rule. Otherwise, the base (unqualified) rule runs instead of the one you intend to test.

Clipboard pages

After running a rule, you can open the Clipboard tool and examine the output as it appears on the resulting clipboard pages. The Run Rule operation creates the following pages:

Service rules

Before testing service rules, determine how you will provide the sample data for the service to process. For information, see the PDN document Testing Services and Connectors.

Testing details

Select topics in the following list for information about how to unit test rules of specific types:

  Activity Service dotNet
  Data Page Service EJB
  Data Transform Service Email
  Decision table Service File
  Decision tree Service HTTP
  Declare expression Service Java
  Flow Service JMS
  Flow action Service JSR94
  Harness Service MQ
  Map value Service SOAP
  Parse Delimited When
  Parse Structured  
  Parse XML  
  Section  

Related Topics Link IconRelated information

Designer Studio — Using the toolbar