Question

4
Replies
479
Views
Close popover
srinivas saddi (SrinivasS2132)
MPhasis

MPhasis
US
SrinivasS2132 Member since 2017 6 posts
MPhasis
Posted: November 15, 2018
Last activity: November 27, 2018
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.htm#rule-/rule-obj-/rule-obj-activity/clipboard-contents-con.htm%3FTocPath%3DRecord%2520management%7CRule%2520and%2520application%2520testing%7CUnit%2520testing%2520of%2520rules%7CUnit%2520testing%2520an%2520activity%7C_____1

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.

DevOps Testing Applications
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.