Question

1
Replies
956
Views
Close popover
Roshini Vijayakumar (roshiniv1832)
Cognizant Technology Solutions

Cognizant Technology Solutions
IN
roshiniv1832 Member since 2016 8 posts
Cognizant Technology Solutions
Posted: July 30, 2019
Last activity: August 5, 2019
Closed

Unit test case

Hi Community members, I am new to unit testing in Pega. Can anyone give a work example of a unit test case along with sample assertion. Though I have gone through pdn content and below video, I am unable to find working example of unit testing.

https://community.pega.com/video-library/how-unit-test-when-rule

To be more specific,

1.Can anyone explain why and how to use assertion for test case?

2.Do we write test case only for sucess scenario?

3.Should we also write test case for failure scenario?

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.