Skip to main content


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

Tools for testing the UI

Updated on February 7, 2022

Testing the user interface at the development stage helps you ensure that your application works as expected. Pega Platform includes tools for setting up end-to-end scenario tests, as well as a Selenium-based starter kit for CRM.

Pega Platform includes the following testing tools:

Scenario tests
Tests that verify that the end-to-end scenarios are functioning correctly. For more information, see UI testing.
Selenium
A test framework and sample UI tests that you can use to build up a test automation suite for your application. For more information, see Selenium starter kit.
Test ID
An ID that provides a unique identifier for automated testing.

In the property pane of a UI component, you can either enter a custom ID, or generate a unique 21-digit time stamp to act as a Test ID. The system adds the Test ID as a data-test-id attribute on the Document Object Model (DOM) element at run time.

Generating a random Test ID
The Generate button is located in the Identifiers node of a property pane.

You can use the Test ID in automated tests to single out a component. The following code snippet presents a sample use in an XPath selector that returns the element with a matching data-test-id.

$x("//*[@data-test-id='202105250826190065001']")

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