Unable to pass value to unit test case parameter

Hey,

I have an application that is built on PegaTestAutomationKit 1.3 - while creating a unit test for example for DataPage rule (with one input parameter) then I am not able to somehow pass the parameter dynamically. The only way is to have it hardcoded.

The test case works correctly only when I directly hardcode the parameter value (marked yellow). Whenever I try to pass it using a data page (D_Data[param:“value”].ParamValue) or from DSS (@getDataSystemSetting(“owningRuleSet”, “setting”)) then it always takes the string as literal value rather than reffering the actual value.

@KDurczynski

Did you try to set the dynamic value through D_pyScenerioTestData data page**.**

It is an OOTB data page. You can set value to this data page by using any data transform/activity.

Pleas go through this link -

Thanks,

Nikita

@NikitaK4275 yes I’ve tried that option and unfortunately it does not work.

as you can see it takes the literal string as the param value :frowning:

@KDurczynski go to set up and clean up tab. using data transform set the required value in Param page.

like Param.userIds = your datapage.