Unit testing Declare Expression rules with manual inputs
You can unit test declare expression rules with manual inputs if all properties in the computation are
Single Value
properties and belong to one Applies To class.
- Save the Declare Expression rule form.
- Select Actions > Run.
- From the Data Context list, select the context in which to run the test.
- Click a property on the declarative network.
- Specify a value for the property (in the Property section in the lower right corner of the window) and click Update.
- Repeat steps 4 and 5 to reevaluate the expression output given to your different input values. Each time an input property is changed, the expression is automatically reevaluated.
-
If the unit test of the Declare Expression rule requires creating an input that is part of an embedded
Page List
orPage Group
property, create a new page. You can also add inputs toValue List
orValue Group
properties.To create the additional input:
-
Select the Add new page check box.
-
For a
Page Group
, enter an identifier as a subscript value (For aPage List
, the system appends the new page after existing pages.) - Select the class of the page from the Class list.
- Click Update.
-