Unit testing Declare Expression rules with data transforms
Instead of manually changing property values, you can create and run a data transform that sets the values defining a test case.
- Save the Declare Expression rule form.
- Select Actions > Run.
- From the Data Context list, select the context in which to run the test.
-
Specify a data transform to run by clicking the hyperlink.
-
Click Reset Page to discard all previous test results. An empty test page is re-created, and your data transform reinitializes your specified values.
- Repeat steps 4 through 5 with other data transforms, or alter the clipboard contents and repeat the test.
-
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 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.
-