Question

6
Replies
88
Views
Michel Kraaij Member since 2016 21 posts
Valori B.V.
Posted: 1 year ago
Last activity: 1 year 7 months ago
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****

Low-Code App Development Testing Applications
Moderation Team has archived post
Share this page LinkedIn