Michel Kraaij - van den Berg (Michel Kraaij)
Valori B.V.
ChapterLead Pega, Testconsultant, Pega Certified ATP Instructor
Valori B.V.
Michel Kraaij Member since 2016 26 posts
Valori B.V.
Posted: January 23, 2019
Last activity: February 21, 2019
Posted: 23 Jan 2019 14:33 EST
Last activity: 21 Feb 2019 4:25 EST

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****

DevOps Testing Applications
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.