Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unit test for data page with Lookup option fails

SA-54726

Summary



Unit Test for data page with Lookup option fails. because of the wrong context of execution, while the DataPage itself works as expected.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Create a Single Page thread level data page sourced with the Lookup option
  2. Execute the data page and convert it to test
  3. Add any assertions for test and save it
  4. Run the test


Root Cause



A defect in Pegasystems’ code or rules. During the data page load, the pxCallObjOpen (@baseclass) accesses the pxObjClass property from the parameter page. For execution of Pega-unit testcases, the value of pxObjClass was set as 'Rule-Test-Unit-Case' and the same parameter was referred during data page load.


Resolution

Perform the following local-change:

In the data page, for response data transform parameters, uncheck the 'pass current parameter page' checkbox and pass the required parameters explicitly.

BUG-307626 is logged for the same behavior which will be fixed in future releases.


Published April 10, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice