Creating a New Preset
Previous  Top  Next

You can create a new preset by using the New Preset button from the Preset window, the New Preset button from the preset-toolbar or the Presets | New Preset menu.


The Preset buttons

This will start the Create Preset Wizard:

The Create Preset Wizard

After the Welcome page, the first thing you need to do is to select a preset-datatype by using the drop down box.


Selecting a preset-datatype

After selecting the datatype, the next page will allow you to select the data-generation type and adjust the values accordingly. The possibilities are different for each datatype:

·String preset  
·Integer preset  
·Float preset  
·Date/Time preset  

All presets need a name, unique for the specified datatype, and a "value type", as shown below.


Entering a preset name

Selecting an item from the Value type box shows details on how to create such a value, in the lower part of the dialog.

After you have created one or more presets, you can use them when creating or modifying a Data Generator Project.

String Preset
The following are possible with a string-datatype preset:

Fixed Value
Enter a value in the Fixed Value edit box. The same value will be used for all data-rows.

Random Values
Different random values will be generated, see below.

Value from List
A random value from the specified list will be taken for each data-row.


Random Values
A random string value can mean a lot of things. For a preset, the following random values are possible:

Random Values
A randomly generated string with a length between the specified values. Use the same values to generate a fixed-length string value. Single characters are taken from the "printable" range of characters.

Random GUID
A global unique identifier (GUID).
Example: {E2B6008E-24CE-4412-907F-5A764C033E02}

Random URLs
Creates random URLs from a set of top level domains and domains.

Random e-mail address
Creates a random email address take from a random last-name, random top level domain and a random provider name.

Random address
Creates a random street-address by taking a random street name from a data library and concatenating it with a (house) number.

Random full names
Creates a random first-name + last-name combination by taking both from a data library.

Masked value
A powerful way to create custom values. See Masked Values for more information.


Integer Preset
The following are possible with an integer-datatype preset:

Fixed Value
Enter a value in the Fixed Value edit box. The same value will be used for all data-rows.

Random Values
Different random values will be generated, each value between the specified values.

Increasing Values
Creates a new value for each row starting at the specified Start at value and increasing the value for each row by the specified Step value.

Value from List
A random value from the specified list will be taken for each data-row.


Float Preset
The following are possible with a float-datatype preset:

Fixed Value
Enter a value in the Fixed Value edit box. The same value will be used for all data-rows.

Random Values
Different random values will be generated, each value between the specified values.

Increasing Values
Creates a new value for each row starting at the specified Start at value and increasing the value for each row by the specified Step value.


Date/Time Preset
The following are possible with a date/time-datatype preset:

Fixed Value
Enter a value in the Fixed Value edit boxes. The same value will be used for all data-rows.

Random Values
Different random values will be generated, each value between the specified values.

Increasing Values
Creates a new value for each row starting at the specified Start at value and increasing the value for each row by the specified stepping values. Increments can be per second, minute, hour or days.


When using a date/time preset for a date-only column, the time will be truncated. When using it for a time-only column, the date will be truncated. Do note that, for example when using "Increasing values", you can use an increment of half a day (12 hours) and still insert only the day part. This will result in each 2nd row having a new "day" value.