Pega V22 How to Configure Unit Test Setup Automation

Hello!

In the “Defining before and after tasks” article for Unit Testing in Robotic Automation for Robot Studio V22, the example shows “Initialize” already listed in the dropdown for the setup automation. I’m not sure how to configure an automation to be available in that dropdown to prepare for a unit test.

What are the steps to configure an automation for this use? Do we have examples available?

Thank you!

  • Matt

@MatthewP9475 Add any setup or cleanup automations to the “Unit tests” folder from the “Project” tab. To do this, right-click on the “Unit tests” folder and select “Add” then “Automation”. These can use other project automations if needed, so if you had a login or startup automation you wanted to call in your unit test setup, you would create an automation in this folder to call it. Once your automations) are here, you can select them from the Unit test as either setup or cleanup.