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
- Create a Single Page thread level data page sourced with the Lookup option
- Execute the data page and convert it to test
- Add any assertions for test and save it
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.