You are here: Record management > Rule and application 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. You can also verify that the appropriate error messages appear on pages when there are errors that occur on the page while running the test case.

  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 one of the following options:

  6. Optional: Click Add pages and perform steps 5 through 6 to add another page to the assertion.

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

  8. Click Save in the rule form.

When you run the test case, the system searches for the specified page. The assertion passes if all the pages that you specified are either found, not found, have error messages, or do not have error messages.