Question
Rulesware LLC
SV
Last activity: 30 Sep 2024 11:40 EDT
Limitations for Case Type and Flow Unit Test Rules
When you create a Case Type or Flow Unit Test Rule it starts a record session for the given process. But I have run into the following issues:
- When the Case Type or Flow requires some previously set data to perform correctly (A Child Case Type for example), if you start the recording, you don't have that data. If a save the test case (to try and setup some data) I can't continue my recording under the same Test Case Rule, hence my Test Case results in an incomplete process.
- Let's take a stand-alone Case Type that I was able to record. In my Unit Test Rule for that Case Type I want to be able to add some "Before rule execution" data under the Setup & Cleanup tab, but it seems the only data the Test Case uses is the "Test Data" generated in the UserInputs Data Transform.
Please advise on what is the best practice or best way to create Unit Test Rule for a Case Type or Flow Rule.
The limitation described at Best practices for designing Pega unit tests "Case type and flow Rules have limited support. Non-starter flows are not supported." Means if it is a Child Case Type it is not supported?
Thanks in advance.