Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unit test of decision tree is not working properly

SA-44229

Summary



Unable to perform a Unit test for a Decision tree.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a Decision Tree with a page level property as the input property.






  2. Run the Decision Tree by providing input values to the ID property.


  3. Click the Reset Page button.



    The Decision Tree cannot be tested as input properties are missing.


Root Cause



This behavior is as per Pega product design. The decision tree displays a value when the Run button is clicked. The pages referenced in Pages and Classes of a decision tree are populated and include an input value which the decision tree requires (Goal Seek behavior). These pages are equivalent to a Clipboard page. Clicking the Reset Page button, resets the test page. When the decision tree is run, it searches for the the CustomerPage.ID which is already present on the Clipboard as the Top Level page with the value that was already populated in the earlier runs.


Resolution



Perform the following local-change to reset pages to recalculate,
  1. Run a data transform to reset or remove the pages from the Clipboard by going to the thread in which the decision tree is run.
  2. Right click page with inputs and click Delete Page.
  3. Run the decision tree.

Published April 13, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration 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 Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us