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

Pega UI components have randomly generated IDs



In Pega 8.1, the UI components generate IDs randomly for all the input components. However, the same have standard ID names in Pega 7.3.1. As a result, this impacts the Automated Testing scripts and the scripts cannot run the tests on the input components. Hence, the tests fail.

Error Messages

Not Applicable

Steps to Reproduce

Run the standard Automated Testing scripts on the applications.

Root Cause

This behavior is as per Pega product design. Due to changes in Pega 8.1, the recorded scripts, on earlier versions, did not work.


Perform the following local-change:
  1. Use data-test-id to create or record unit scripts for non-reusable rules. 
  2. Use XPath to create or record unit scripts for reusable rules. 

Published December 19, 2018 - Updated December 2, 2021

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