Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Generating mock data for strategy testing

March 14, 2018 | 05:48

In this product demonstration, you learn how to use a Monte Carlo data set to prepare test data that can be used in data flows and decision strategies.

 

Generating mock data for strategy testing

In this demonstration, you learn how to use a Monte Carlo data set to prepare test data that can be used in data flows and strategies.

Start by creating a data set rule of type Monte Carlo. Specify the Apply to class. In this example, it is the Customer class.

To configure the data set, select the locale and the number of records you want to generate. You can change these values later.

To configure an individual data field, select a property and the method to populate that field.

The properties displayed belong to the Apply to class.

There are different method types that can be used to populate each data field. The list includes standard Pega methods as well as the Monte Carlo method.

The Monte Carlo method contains a list of what are known as Providers that you select to generate records for a variety of information types.

To select a Provider, press the down arrow key. The list of all available Providers is displayed.

To narrow down the choice, enter a few characters. For example, if you type Name, you only see the Providers relating to that string.

Add a few fields and generate an address for your customer.

From the Address Provider you can define a city, country, and street. Then, using a simple expression, you can combine them into an address line. The expression can be a simple concatenation or a complex financial formula. All fields used in an expression must be declared before the expression is evaluated. The same rule applies to all other methods.

Some Providers need extra information to generate the data. In this application, the Churn Score property has a value between 0.0 and 1.0.

The Consecutive Provider enables you to generate a unique key for each row of data. In this example, the Customer ID is prefixed by CON dash.

Save the data set and examine the results.

You can change the locale and see the updated results. Locale is a set of parameters that defines the user's language, region, and any special variant preferences that the user wants to see in the interface. In this example, both the Address and Full Name are displayed in Polish locale.

You have now reached the end of this demonstration. In this demonstration, you learned how to generate mock data that can be used for testing.

C-844-MCSimpleDataSetBuild Demo
Share this page Share via x Share via LinkedIn Copying...

Related Videos

Customer Decision Hub Deliveries with Pega Express
Video duration: 14:22
Subtitles available

Whether a single application or full transformation, Pega Express™ is our delivery approach. Be inspired by our Pega…

Pega 8.7 Deep Dive: Low-Code Application Development
Video duration: 41:12

Brian Pageau and Rekha Rani walk you through the latest Low-code features including tags in Cosmos React, data modeling, and…

Pega 8.7 Update: Faster Time to Value - Low Code
Video duration: 09:05

Steve Bixby, Vice President of Product, chats with Sr. Director of Intelligent Automation, Drew Piekarski about Low-code in…

Product How-To | How to add a relevant record
Video duration: 01:15

See how quick and simple it can be to add a relevant record in this product how-to video!

Product How-To | How to add Personas channels and associate releases
Video duration: 01:00

In this product how-to, learn how simple it is to add personas and channels, as well as associating your releases to your…

View All Videos

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 Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us