Question

Pega Unit Test Cases for temp cases

Hi Team,

I am trying to record test case for a Temp case type and persisting case later in steps, but unfortunately persist case is not recording in test case and hence test cases is failing every time.

Please suggest.

Thanks,

Lalit

Comments

Keep up to date on this post and subscribe to comments

December 13, 2019 - 6:35am

Hi Lalit,

What version of Pega are you using?

In 7.4+ there is a feature to clean up test data. If this is selected then the work object is removed (giving the impression that the case was not persisted).

Is this is not the case then you could try a declare trigger (saved in AUT ruleset) that will persist the case.

Thanks,

 

Dan

December 13, 2019 - 3:25pm
Response to DanielS7103

Hi Dan,

Thanks for the response !!

I am using 7.4 and will try your suggestions and let you know.

Thanks,

Lalit