Exclude properties in your work class from the test by modifying the pyDataCapturePropertyIgnores data transform.
Some properties, like .pyID, are not processed when a Pega unit test case is run. These properties vary for every test run. The pxDataCapturePropertyIgnore data transform displays the properties that Pega unit tests do not process.
Open the data transform:
In the navigation pane click, and enter
Work-in the Search field.
Expand Data Model > Data Transform and then click pyDataCapturePropertyIgnores.
Save the data transform to your Work- class and in your test ruleset.
For each property that you want to exclude in the data transform, do the following steps:
On the Definition tab, click the Add icon.
From the Action list, select Set.
In the Target field, enter the property that you want to exclude.
In the Source field, enter two double quotation marks, separated by a space:
Save the data transform.