Support Article
Pega UI components have randomly generated IDs
SA-69033
Summary
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.
Resolution
Perform the following local-change:
- Use data-test-id to create or record unit scripts for non-reusable rules.
- Use XPath to create or record unit scripts for reusable rules.
Published December 19, 2018 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.