Skip to main content


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

Testing rules in the Declarative Network Viewer

Updated on May 31, 2022

Reduce the number of processing errors by testing calculated properties in the Declarative Network Viewer.

By determining the value of a property automatically (declaratively), you reduce the number of manual calculations required and improve system efficiency. The viewer is a tool that displays the relationship between declarative properties based on changes to other property values. You can also use the viewer to test whether the properties calculate correctly, and set up tests for future use.
  1. In the navigation pane of Dev Studio, click Records.
  2. Expand the Decision category, and then click Declare Expression.
  3. In the list, select the declare expression that you want to test.
  4. In the declare expression, click ActionsRun.
  5. In the Test Page section, select the context to use for the test:
    1. In the Data Context list, click the thread in which you want to run the rule.
    2. Optional: To discard all previous test results and start from a blank test page, click Reset Page.
  6. In the section with the declare expression that you want to test, define the value of the properties that the system uses to calculate the declarative property:
    1. Click a property that you want to define, and then enter its value in the Property field.
    2. Click Update.
    3. Repeat steps 6.a through 6.b for all properties in the expression.
    Result: The value of the declare expression changes to reflect the updated properties. You can now see whether the declarative property calculates correctly.
  7. Optional: To save the settings as a test scenario, click Convert to test, and then complete the New tab.
    For more information, see Viewing test coverage reports.

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