You are here: Record management > Rule testing > PegaUnit testing > Configuring page assertions

Configuring page assertions

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:

  1. Complete one of the following actions:
  2. Complete one of the following steps:

  3. From the Assertion type list, select Page.

  4. In the Page field, enter the name of the page.

  5. From the Comparator list, select either exists or does not exist.

  6. Click Add page and perform steps 5 - 6 to add another page to the assertion.

  7. Optional: To add a comment, click the Add commentadd comment icon icon, enter a comment, and click OK.

  8. 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.