Are you looking for a practical example or the concept? Also, I hope you are referring to PegaUnit framework (The enhanced version of old AUT). While designing the test case, setup section is used to setup any data that is pre-requisite to run the test case. Clean-up section is used to remove the data that got created in the test. There are options to run data transform, activity or load a data page as part of setup.
If you want any specific information, please do mention.
Lets assume that I have a case(work object). where the case will be created based on the external service request to pega(i.e request ). Now if I want to have a Pega Unit for the case creation and followed by some UI. how do I create the test case?
Scenario 2:I have a flow. It has 5 screen. In the screen 2, we have a table in repeating list with the check box option.(sample screen below)
If We select all the four checkbox. on click of submit, 4 sub cases will be created and each will be assigned to the specific work basket. then we open the case from the work basket and fill the details and complete the sub case. How do we create the Pega Unit cases?