Question

1
Replies
17
Views
Close popover
Chunzhi Hong (Chunzhi_Hong)
PEGA
Consulting Manager, Pega Consulting
Pegasystems Inc.
JP
Chunzhi_Hong Member since 2013 138 posts
PEGA
Posted: November 10, 2020
Last activity: November 10, 2020

How to mock a WHEN rule in a pegaUnit test case

I have a when rule A calls another when rule B.

I wanted to create PegaUnit test case for when rule A.

How can I mockup when rule B, so that my test cases for when rule A won't be affected by the actual execution result of when rule B?

 

***Edited by Moderator: Pooja to update platform capability tag***
Pega Platform 8.5.1 DevOps Low-Code App Development