Question
Running PegaUnit tests from Jenkins Job?
Hi,
From PRPC 7.2.2, we have a new functionality in Pega to build Unit Tests to test activities, decision tables, decision trees and data transforms.
Unit Testing for Data Pages and Strategies was already present on previous PRPC Versions.
We need to build a CI / CD chain, and we need to execute Unit Tests from a Jenkins Job. But i could not find any OOTB Feature to allow this e.g. REST Service. How can we run PegaUnit tests from Jenkins?
Thank you.
***Moderator Edit: Vidyaranjan | Updated Categories***
Hi Filipe,
During my research i found pzExecuteTests REST Service which is available from Pega v7.2.
Description: This is OOTB REST service available to customers to enabled them to trigger execution of test cases from an external system/Continuous integration tools /Build tools etc.
This service is unauthenticated.
Usage: It accepts two parameters
1) AccessGroup : Access Group in which tests to be executed are present and rules under test will be accessible 2) LocationOfResults : Location where xml outpur of service will be stored
It executes all test cases available in default applictaion linked to AccessGroup provided. i.e. all test cases available in current application rulesets.
Hope this might help you in achieving your requirement.
Regards
Mahesh