Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Extend PegaUnit setup and cleanup capabilities using custom fixtures (8.6)

Updated on May 12, 2021

This content applies only to On-premises and Client-managed cloud environments

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

Create an instance of the Data-TextFixtures class, defining the implementation logic for your custom action.
Create an instance of the Data-TextFixtures class, and define the implementation logic for your custom action.

 

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. 

Custom fixtures_implement
Implement the custom fixture by selecting it during set up.

 

  • Previous topic DevOps and Automated Testing
  • Next topic Delay the execution of a step within a test and rerun failed scenario tests for enhanced scenario test stability (8.5)

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us