Table of Contents

Testing rules in the Declarative Network Viewer


Only available versions of this content are shown in the dropdown

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 Actions Run .

  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.

    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 Creating unit test cases for rules.

Related Content

Did you find this content helpful?

Have a question? Get answers now.

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