Adding a user page to the clipboard
Quickly exercise your application logic in different scenarios by manually adding user pages in the Clipboard tool to mock the state of the application. For testing purposes, you can add user pages manually when your application is still in development. As a result, development efforts can continue in parallel rather than in sequence, which helps you deliver working software more rapidly.
For example, in an insurance claim case, you want to test a process that includes a Load data page step, but the case currently lacks a data model. In this situation, you can use the Clipboard tool to create mock pages to verify that the process runs correctly against a proposed model.- To avoid building logic into your application that provides mock values for application validation.
- To manually test your application against a data structure that is not available yet.
For relevant training materials, see the Clipboard data module on Pega Academy.
- In App Studio, navigate to an element that you want to test.
For example: To test a case, in the navigation pane of App Studio, click Case types, click a case type that you want to open, and then click Save and run. - In the footer of App Studio, click .
Result: The Pega Clipboard window opens. The navigation pane lists pages in memory that are associated with the selected thread. - In the Thread list, select the thread in which you want to add a user page.
- In the navigation pane, right-click User Pages, and then click Add Page.
- In the Add New Page dialog box, in the Page Name field, enter a name for the new page.
- Optional: To create a list of properties based on a specific class, in the Page
Class field, enter or select the class to which the user page belongs.Otherwise, the page that you create is classless.
- Optional: To provide values in the user page by using a data transform, in the Data Transform field, specify the data transform that supplies the initial values for the user page.
- If the data transform sends parameter values to the user page, you can provide these
values by clicking Get Params, and then entering the parameter
values that you want to set in the appropriate fields.
For example: Set the value of a field to the name of a product, as shown in the following figure: Adding a user page with a data transform - Click Submit.
Previous topic Setting property values with the Clipboard tool Next topic Measuring clipboard size