Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Excluding work class properties from flows and case type tests

Updated on December 13, 2021

Exclude properties in your work class from the test by modifying the pyDataCapturePropertyIgnores data transform.

Some properties, like .pyID, are not processed when a unit test case is run. These properties vary for every test run. The pxDataCapturePropertyIgnore data transform displays the properties that unit tests do not process.

  1. Open the data transform:
    1. In the navigation pane of Dev Studio, click AppClasses, and enter Work- in the Search field.
    2. Expand Data Model > Data Transform and then click pyDataCapturePropertyIgnores.
  2. Save the data transform to your Work- class and in your test ruleset.
  3. For each property that you want to exclude in the data transform, do the following steps:
    1. On the Definition tab, click the Add icon.
    2. From the Action list, select Set.
    3. In the Target field, enter the property that you want to exclude.
    4. In the Source field, enter two double quotation marks, separated by a space: " ".
  4. Save the data transform.
  • Previous topic Data that you can record for flows and case types
  • Next topic Defining expected test results with assertions

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us