Skip to main content

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. 
Suggest Edit

Published November 29, 2018 - Updated December 18, 2018

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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