Some rules, such as activities and data transforms, can create or remove pages from the system. You can create page assertions to determine whether or not a page exists after a PegaUnit test case runs by completing the following steps:
If you have not saved the automated test case, click Cancel or Done to open the Definition tab.
Open the PegaUnit test case if it is not already open and then click the Definition tab.
If the test case is open, click the Definition tab.
Complete one of the following steps:
To add a new assertion, Add expected result at the bottom of the page.
Modify an existing assertion in the pane.
From the Assertion type list, select Page.
From the Comparator list, select either exists or does not exist.
Click Add page and perform steps 5 - 6 to add another page to the assertion.
Optional: To add a comment, click the Add comment icon, enter a comment, and click OK.
Click Save in the rule form.
When you run the automated test case, the system searches for the specified page. The assertion passes if all the pages are either found or not found, as specified.