You can configure property assertions to compare the expected value of one or more properties with the actual values returned by a rule.
Complete one of the following actions:
Open the PegaUnit test case if it is not already open and then click the Definition tab.
If the PegaUnit test case is open for data pages, activities, data transforms, and you have not saved the rule form, proceed to step 4.
Complete one of the following actions:
To add a new assertion, click Add expected result at the bottom of the page.
Modify an existing assertion in the pane.
From the Assertion type list, select Property.
Add properties to the assertion.
Add properties.
If you are adding properties for data transforms, activities, or flows, or case types, complete the following tasks:
From the Thread list in the Actual results section, select the thread that contains the page whose properties or pages you want to add.
In the Page field, press the Down Arrow and select the page whose properties or pages you want to add.
Select the property or page that you want to add. You can search for a property or its value by entering text in the search bar and pressing Enter.
If you select a page, all embedded pages and properties from the page are added. Added properties appear in the right pane.
From the Comparator list, select the comparator that you want to use to compare the property with a specified value.
In the Value field, either enter a value with which to compare the property or open the Expression Builder by clicking the Gear icon to enter an expression that is used to provide the value.
Note: The Gear icon does not appear until after you have saved the rule form.
Optional: To add a comment, click the Add comment icon, enter a comment, and click OK.
If you are adding properties using the property panel, click Done.
Click Save in the rule form.