Test ID and Tour ID for unique identification of UI elements
The Test ID property supports automated testing and enables you to write dependable automated tests against any Pega application. By including this unique identifier in your automated testing, you ensure a higher level of productivity and reliability within your applications.
When you create a control that supports Test ID, the Test ID field is initially blank. You can either enter custom text of your own or click the button to have a unique ID created for you. When you save an existing section, any controls that support Test ID but do not have a Test ID will have one automatically generated. You can override these Test IDs with a custom ID at a later time.
Test ID field in the Cell Properties panel
After the Test ID is generated, you can view your Test ID in HTML. And with the new Live UI tool, you can also view Test IDs at run time for a specific element within the Live UI info panel. For more information, see Using the Live UI tool.
Using the Test ID during product testing gives you the ability to identify your unique string of characters in a simple and consistent manner. For example, you might compare an application's assistive technologies by creating a unique ID called assistive_select that tests the performance of a radio button and a check box control.
Optionally, you can have all controls that support Test IDs in a ruleset updated in bulk.
You can create a guided tour to highlight key features of user forms and portals. The guided tour provides users with information, instructions, or controls in a sequence of pop-up windows called tour stops. For example, you might want to create guided tours that instruct users how to create a case or how to personalize their dashboards. For each UI element where you want to anchor a tour stop, click the Gear icon to open the properties, and enter a Tour ID value.
Both Test IDs and Tour IDs are supported in the following types of controls:
- Check box
- Date time
- Formatted text
- Radio button
- Text area
- Text input
Test IDs are supported in the following controls:
- Hidden text
- Tree grid
Tour IDs are supported in:
Published March 1, 2017 — Updated August 9, 2017