Discussion
Pegasystems Inc.
IN
Last activity: 15 Sep 2017 8:36 EDT
Ask the Expert - Test Automation with Prasad Vadlamudi
Join Prasad in this month's Ask the Expert session on Test Automation!
Meet Prasad: Prasad is a senior product manager for Pega test automation area. He has been working with Pega for about 1.5 years. He owns out of the box unit testing capabilities in Pega platform using PegaUnit framework. He has been managing the demos and workshops across various stakeholders and helping teams to adopt the framework.
Message from Prasad: Hi, PegaUnit is a simple and easy to use framework which improves the speed & quality of your application testing. Please post your doubts, queries related to this area and I will be happy to answer them.
Ask the Expert Rules
- Follow the Product Support Community's Community Rules of Engagement
- This is not a Live Chat - Prasad will reply to your questions over the course of this two-week event
- Questions should be clearly and succinctly expressed
- Questions should be of interest to many others in the audience
- Have fun!
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
John Deere India PVT Ltd
IN
Hi Prasad
automated test suites within PEGA for testing connections. What are options for efficiently testing connection points as we move through enviornments or add new functionality? Does Pega offer any automated testing functions?
John Deere India PVT Ltd
IN
Hi Prasad,
Can I have a answer to this query.
Thank you.
Updated: 6 Sep 2017 10:30 EDT
Pegasystems Inc.
IN
Hi Sravan
I have replied to this query which is acknowledged by you.
<excerpt from the below reply>
Right now we are not providing automation for integrations & advise users to use tools like soap UI or wrap them with data pages / activities and use PegaUnit framework.
Pegasystems Inc.
IN
Hi
Please find the link to the PegaUnit documentation in PDN.
John Deere India PVT Ltd
IN
Hi Prasad,
I want to Automate the connections (like Soap) when we move to different environments like (Production) it should automatically test the connection and should display the connection is established successfully.
The below link https://collaborate.pega.com/question/cannot-view-test-cases-when-switching-between-pegaunit-testing-and-automated-unit-testing it shows only for some rules not for the integrations.how can we achieve the automating the connections in the integrations?.
Thank you.
Pegasystems Inc.
IN
Hi Sravan,
I gave that link as a general starting point for PegaUnit framework. It was not a reply to your query:-). Sorry about that. Right now we are not providing automation for integrations & advise users to use tools like soap UI or wrap them with data pages / activities and use PegaUnit framework.
Thanks
Tetco
SA
Good One. Thanks.
John Deere India PVT Ltd
IN
Hi Prasad,
Thank you for your reply.
Capgemini
IN
HI Prasad,
is there any course available in PDN for PegaUnit?
Pegasystems Inc.
IN
Hi Prerna
There is no course for PegaUnit yet in PDN. We will be launching a course & few demo videos very soon. For now, you may please go through below documentation & in case of any queries/doubts, please approach us and we will be able to help you out.
Regards
Prasad
Instellars
IN
Hi Prasad,
Can you suggest any tool / feature within Pega that helps to automate PEGA screens and their actions. Thanks! I do not think AUT can help in UI automation.
Pegasystems Inc.
IN
Hi Ajith
We have plans to extend PegaUnit framework to cater UI automation (Sections & respective actions). As of now, there is no in-built feature for this purpose. You may leverage flow automation (Using PegaUnit) to verify the results of UI actions in the whole process but as such not the UI components.
Regards
Prasad
Instellars
IN
Thanks Prasad..
Merkle
ES
Hey,
How would you suggest to integrate PegaUnit with an already existing selenium suite of tests. Can Pega unit be called via an API? Could we pass expected test data to it for example?
Thank You,
Pegasystems Inc.
IN
Hi Anna
PegaUnit provides a service to trigger the test cases from any external system and returns test results in XML format. Please refer to the link below to understand more about it.
https://collaborate.pega.com/question/running-all-pegaunit-test-cases-execute-tests-service-pega-71x
As the data (input & expected output) is tightly coupled with the test cases, it is not possible to pass any expected data to these test cases.
Anamata
NL
Are there future plans to release more PegaUnit test REST calls besides 'pzExecuteTests'? We would like to integrate our Valori Data subsetting and anonimization solution with PegaUnit (and any other Pega Framework). Data subsetting and anonimization is quite a daunting challenging, but mandatory due to government regulations. Automating this process saves a lot of time and will even be beneficial to unittesting.
Pegasystems Inc.
IN
Hi
There are currently don't have any plans to release more REST services which can offer data masking / sub-setting capabilities. Reason behind this is that the test data is tightly coupled with the PegaUnit test cases. One may use the existing service to select which tests to be executed but not with what data they should be executed with. If you referring to something else, please let us know what type of APIs are you looking for and your requirements, so that we can get back more precisely.
indexit
IN
how to move code and zip file to production tell me the process from first ot last
-
Manish Kumar
Pegasystems Inc.
IN
Hi
If you are referring to the code related to test cases/suites, then it is very much similar to your other rules in Pega. Test case / suites in Pega are nothing but rules. So, the process of RAP, import remains same. The general guidance is to store all test case / test suite rules in a separate ruleset, so that you can restrict shipping of any such test rulesets to environments like production where you don't want your tests to be visible.
Pegasystems Inc.
IN
Hi Prasad
I have a scenario where Pega unit test is not working. Please let me know if there is any way to achieve this
Scenario:
I had created the test case using flow .
1. On Submit of a work object 2 assignments are getting created.
2. From review harness , Other Actions -> if we perform recall, the flow is getting rerouted to initial stage.
3. after performing update continue the flow and resolve work object.
After recording the test case and if I run the test case , the work object is stuck at the point of recall and test result is failing as the flow is not able to progress further and other assertions are not working.
Is there a way to progress the flow?
Please Note: Recall functionality is customized in our application
Pegasystems Inc.
IN
Hi Pal
Any customized actions may not work with this framework's current version as it supports only the out of the box local actions & flow actions that are configured as part of the flow or case type. It's a known limitation.
John Deere
IN
In case we have a Straight Through Process (no human intervention), I guess we cant record the Unit Test cases. How would you suggest to test such flows with PegaUnit Test?
Pegasystems Inc.
IN
Hi
Even if there is no human intervention or the flow doesn't need any inputs from user, we can still go ahead and record a test case using the "Create test case" button that is shown once the flow execution completes.
Capgemini
IN
Hi Prasad - I am currently working on Jenkins CI/CD Pipeline implementation for a Pega project on top of Pega 7.2.2 platform. I have the following questions on Pega Unit Test.
1. Can we use PegaUnit to define test cases for application flows which are built on some Pega Framework say Pega Survey, Pega CPM which might have custom rules like "Question", "Intent" and so on? Or does it only support vanilla Pega application(s)?
2. Does PegaUnit in platform 7.3 provide full end to end coverage of all types of rules? Even for Pega Frameworks?
3. Is there any limitation of PegaUnit for Pega 7.3 platform?
Thanks
Arnab
Pegasystems Inc.
IN
Hi Arnab
For all PegaUnit supported rules you are creating in your application you can create test cases using PegaUnit framework, irrespective of the applications it is built-on. Flow & Case type rules are supported only in 7.3 version by PegaUnit but not in 7.2.2. As of 7.3, most commonly used rule types are supported but there are other rule types which are yet to be supported. PDN can be referred to know the list of rule types.
Aflac
GB
Hi Prasad,
When creating a test case for flow/case type rule. There is an OOTB Data transform created for user inputs under the Recorded case section with a shortcut link labelled “View test data”. Is there a way to customise the name used for this Data transform without editing the OOTB activity rule (ID: Save, Ruleset: Pega-AutoTest) during the creation?
Thanks in Advance
Pegasystems Inc.
IN
Hi Ruairi
There is no way other way to change the auto generated name for the data transform used to store the user inputs. As the activity that generates this name is Pega's internal code, it is not advisable to modify or overwrite it as it may have other impacts during upgrades. Is it that you want to follow your own naming convention for the DT or something else?
Aflac
GB
Hi Prasad,
We would like to follow our own naming conventions for this DT Rule. But if there is no way to do this at present then maybe it could be considered as an update in the future :)
Thanks for you quick response.
Ruairi
Pegasystems Inc.
IN
Sure. Will consider. Thanks for the feedback:-)
Pegasystems Inc.
IN
My sincere thanks to people for trying out the framework and coming up with queries and feedback. We will keep working on them & try to make automated testing more efficient for Pega community.
Regards
Prasad
Pegasystems Inc.
IN
Thank you for the great discussion and special thanks to Prasad for being a wonderful expert in this Ask the Expert session!
-
Mohammed Adil Saleem