pega unit testing

PratikRaj388219 80 views 13 slides Mar 09, 2023
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

pega unit testing


Slide Content

UNIT TESTING Team-1 Presented by :- Satya Deepika ([email protected]) Sai sunil varma ([email protected]) Pratik raj ([email protected])

Content : What is Unit Testing Why Unit Testing Different Rules Configuration Of Rule Set

What is Unit testing ? In a Pega Platform™ application, the smallest unit is an individual rule The purpose of unit testing a Pega Platform application is to verify the functional behavior of the application rules at a unit level. When compared with the unit testing tools available in the market that work on testing the source code, Pega unit testing involves working with individual rules and not the source code, thus making it an easy to use tool for users.

An incorrect rule configuration in an application can cause delays in case processing. When an error occurs, end users might need to reassign work, or a case might require repair by an administrator Example If we want to create an application in the pega.In pega what we used to create an application is a rule after completing the application we will get many rules.If we got any error in the application we cant check those all rules at last so with this unit testing we can check the errors in the particular rule

Unit Test Application Rules Open the Run Rule window from the rule form. To unit test a rule, open the rule form and run the rule. For some rule types, such as binary file rules, Pega Platform does not provide an option for unit testing. If the rule cannot be unit tested, the Run option is not available. Initialize the rule with test data. In the Run Rule window, identify a test page of data used to unit test the rule. The Run Rule window creates the test page on the clipboard View the result returned by the rule. After you select a method to populate the test page, reset the page to populate the page with data and run the rule to return a result .

Record a unit test for automated testing After you successfully unit test a rule, you can convert the test run to create a test case that is based on the result of the test. A test case identifies one or more testable conditions used to determine whether a rule returns an expected

Rules used for unit testing UI rules Data model rules Decision rules Testing process rules Testing report rules Testing technical rules

Configuration of Ruleset

Navigation

Assertion types

Demo

Thank you