Skip to main content


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

Unit testing a Parse Delimited rule

Updated on April 6, 2022

You can test a Parse Delimited rule directly, separate from the activity or other context in your application in which it eventually operates.

Before you begin:
  1. Create a Parse Delimited rule. For more information, see Creating a Parse Delimited rule.
  2. Review the basics of unit testing. For more information, see Unit testing individual rules.
For a simple test, obtain some test data. You can type or paste the data into a form, store it in a local Windows file, or upload it into a text file rule.
  1. Save the Parse Delimited rule that you want to unit test.
  2. Click ActionsRun.
    Result: A guided test window opens.
  3. Select a radio button to indicate the source of the test data.
  4. If the data is to be entered directly, type or paste the data into the text area.
  5. If the data is in a local file, click Choose File and navigate to the file. Then, click Open.
  6. If the test data is in a text file rule, enter all three key parts of the rule that are separated by periods.
  7. Click Execute to evaluate the rule.
    Result: An XML document is displayed in a new window, showing properties and the corresponding parsed values. The clipboard is not altered; no properties are updated.

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