Idea
2
Replies
28
Views
Siemens Technology and Services Private Ltd.
Posted: December 17, 2020
Last activity: January 19, 2021
Pega unit test cases for Access When rules.
We cannot create test cases for AccessWhen rules, secondly there is no testcases tab in such rule. But while saving we get a compliance warning which impacts our overall application score.
"You should create a test case for this rule to identify any regression issues that might occur when this rule is modified." This should be addressed, either by having testcases or removing compliance warning.
@SnehasisP0085
Testing my memoy here, but a couple of things to try here:
Your Access When rule can reference a When rule as part of its implementation. When rules can have Test Cases. If you designed your Access When rule to do nothing other than call a corresponding When rule, and implement test cases on the When rule, then you have 100% test coverage for your Access When rule.
If the compliance warning is Informational, then it does not affect your application's compliance score: https://community.pega.com/knowledgebase/articles/application-development/85/compliance-score-logic