I`m trying to get used to Pega Testing features, and trying using Test Case on flows as well.
As far as i get i understand that Test Cases for flow could be created only when "Created a new work object" on Process tab of flow is checked. But the only rules that seems to have it checked is the flows that the Case start with, like pyStartCase. For any others flow this option is always unchecked and never editable. Is there anyway possible to check it on flow used in mid of case?
Also, unlike test cases for Activity, i couldn`t find anyway to pre-initilize clipboard for flow Test Cases. If i`m creating Test Case for flow in sub-case i might want to have test parent-case info in clipboard before actually running it
pyStartCase is the Pega function which initializes the case i.e the creation of case is done by the pyStartCase.
It would be checked only for the flows with which the case starts as creation of case is required in the first flow itself.
It would be unchecked on the other flows as case is been already created in the first flow and make sure we don't have an oppurtunity to create the same case from the second,fourth..... flows.
Pre-intialize of clipboard can't be done before the case creation as clipboard structure is created only when the case is created.
You can intialize the values in the clipboard when the case is created and is in the first flow, so that it would be helpful in testing next flows in the case if there is such requirement.
Hope you understand, if any queries feel free to ask.