Question
6
Replies
99
Views
Valori B.V.
Posted: January 23, 2019
Last activity: February 21, 2019
Closed
Solved
Different results when running PegaUnit test for Data Page
I've created a PegaUnit test for a thread based Data Page which is sourced by a report definition. The report definition is configured to retrieve a maximum number of 500 rows. However, the DB contains 15000 rows.
- When I manually run the data page, 500 records are retrieved. As expected.
- When I create a unittest based on this run, add assertions for pyMaxRecords and pxResults to be both 500 and run the test, it fails. Results: pyMaxRecords is 0 and pxResults is 15000.
- When I save this test and run in from within the Branch Quality tab (all rules are in this branch), it passes. Both are 500 again.
- When I run this test from the Application Quality dashboard, it fails. Again, 0 and 15000.
Can anyone tell me what's going on here. Im performing this test on Pega 7.3.1.
***Edited by Moderator Marissa to update platform capability tags****
This is an interesting quirk. We will have to research this and get back to you. Can you confirm the behavior of the test in the following scenarios for some additional information