Tools for testing the UI
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.
- 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-idattribute on the Document Object Model (DOM) element at run time.
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