Question

4
Replies
386
Views
SrinivasS2132 Member since 2017 6 posts
MPhasis
Posted: 1 year ago
Last activity: 1 year 9 months ago
Closed
Solved

How can we write assertion based on parameters

Hello PDN Community Members,

I have a requirement to write a PegaUnit case based on the parameter value.

For Ex, I have Activity A calls sub activity B which has some logic and sets the status in a OUT parameter. Activity A has logic to check the OUT parameter value.

There is no option in Pega Unit assertions to validate params. As per article below activity logic should be temporarily modified to copy out variable into a page available to Clipboard.

https://community.pega.com/sites/default/files/help_v73/procomhelpmain…

This would be a cumbersome task each time to update the rule with temporary logic especially when we have multiple activities like this.

Any better way or thoughts to deal this scenario ?

Thanks.

Low-Code App Development Testing Applications
Moderation Team has archived post
Share this page LinkedIn