Issue creating a PegaUnit test for Data Transform with String as input
I was creating a PegaUnit test for a data transform but I ran into an issue. The unittest isn't created correctly OOTB. I've made a video to explain the issue using the HRApps application. There is a easy workaround (which is also demonstrated in the video). Nevertheless, this might be something to fix?
This is expected behavior. PegaUnits support expressions in Rule Under Test parameters and hence the value given in the video was treated as expression and used.
Whatever is the value entered in the run dialog is copied to parameter value in PegaUnit when converted to test. If user enters along with double quotes on the run dialog, then value is copied with double quotes. User has to enclose the parameter in double quotes if the parameter is to be treated as string. While copying, PegaUnit cannot add or remove quotes by itself as there are other usecases where addition or removal of quotes results in incorrect behavior.
Your explanation sounds logic. However, when I enclose this parameter in double quotes and run the rule, the result differs (to no result output at all). The TIN paramater (in this example) is a string property.