Posted: 24 Jan 2020 4:42 EST Last activity: 29 Jan 2020 4:50 EST
Unable to pass AUT for when rules using ootb function checking page list values
Unable to pass AUT for when rules using ootb function checking page list values. The default expected results is not recognizing the page list instead treating it as a page.
Steps to reproduce the issue:
Configured a When rule as below
When a Test case created for this When rule its getting failed(Highlighted part is expected results). Instead of page list (.Error.Errors()) it is defined as a page (.Error.Errors).
We used set up data transform to set values for .Error.Errors(1).ErrorCode=IPBM2004.
This is causing the test case to fail and is throwing error in tracer as shown below With
The property RunRecordPrimaryPage.Error.Errors was of mode Page List while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.setValueOverride(Object) was expecting a String or Page mode. Details: (none)
This auto populated column needs to be dropped. In decision card there is a option called "Managed Properties". Using this, we can remove this column. "Decision Results" card only supports scalar properties. As "Errors" is a pagelist in your application,this error is coming.