Extend PegaUnit setup and cleanup capabilities using custom fixtures (8.6)
The PegaUnit framework allows you to set up the environments and conditions required for running a test case, determine how to clean up test data at the end of a test run, and set pages on which to automatically run rules. With custom fixtures, the setup and cleanup capabilities are now extensible, allowing you to build more configurable and comprehensive test suites. You can use this feature to define specific custom actions at the application level, such as running a test case or sending an email during setup.
To begin with, you create an instance of the Data-TestFixtures class that defines the implementation logic for your custom action. For instance, the fixture definition below can be called during setup to run a specific test case.
After you save the instance, the fixture that you create appears in the Additional clipboard data section of the test case in the dropdown list. The PegaUnit frameworks calls the activity specified in the implementation logic and executes the test case.