Parameters of the Enumerator generator

After you add the Enumerator generator in a field of a Data definition, you can customize the existing configurations of the field.

When you click the Enumerator generator of a specific field in the Data definition in the edit branch, the unique parameters of the Enumerator generator that contains the existing configuration details for that field are displayed in the Enumerator dialog.

The following table provides the list of UI elements of the Enumerator dialog with their default parameters, and the actions that you can perform in the dialog to customize the parameters for the selected field:

UI element Description Default feature Action
The Generator field Displays the name of the selected generator, that is, Enumerator. The name is not editable. NA
The Distribution field Determines if the enumerator values are randomly generated or not in the corresponding column of the test data. Contains the Random option. The Random option is selected.
  • Do not perform any action if you want the enumerator values, when generated in the test data, to follow a random distribution.

  • Clear the Random option if you want the enumerator values to follow a fixed distribution and to be non-random.

    When you clear the option, the Percentage fields of all the existing configurations become editable. You can thereby set a fixed distribution for the enumerator values using the Percentage field.

    For example, if you set the percentage distribution of 30% to a configuration that contains the names of colors and 70% to another configuration that contains the names of shapes, then the enumerator column of the generated data displays the values accordingly.

The Blank percentage field Determines the frequency of blank enumerator values in the generated data. Displays 0 and is editable.

Enter a number from 0 to 100.

For example, if you enter 10, approximately 10% of the enumerator values in the generated data will be blank.

The Name field Displays the custom name of the selected configuration. Displays Default and is editable. Enter an identifiable name to the selected configuration, if required.
The Percentage field Determines the proportion of the generated enumerated values when you do not select the Random option. Editable when Random is not selected.

If you did not select the Random option for distribution, enter a number from 0 to 100 in the Percentage field to set the percentage of enumerator values to be generated.

For example, if you enter 50, the generated data will display the enumerator column with a 50% occurrence rate.

The Format section Determines the additional details about the format of the generated enumerator values for the selected configuration. NA Provide information about the format of the enumerator values for the selected configuration. For more details about the section, see The Format section.
The Add new configuration tab You can add additional enumerator value configurations with specific components and settings, if required.
  • The Name field displays Configuration-1 and is editable.
  • The Percentage field is editable when the Random option is not selected.
  • The Value and Distribution fields display the same values that were provided in the previous configuration.

Click the tab and then add the required components for the additional configuration.

For example, you can have one configuration for colors with a fixed distribution, and another configuration for shapes with a random distribution. You can similarly customize the values, distribution, and percentage as required.

Note: You can click the delete icon Delete icon to delete any additional configuration that you do not need.
The Save to catalog option After the customization of the Enumerator generator is complete, you can use the Enumerator generator as the base generator to create a new custom generator. NA

Click the Save to catalog icon .

You can thereby reuse the same configuration at a later time in different scenarios without having to set it up again from the scratch. See Creating custom generators and categories from Data definitions.

The close icon NA NA Click the icon to exit the Enumerator generator dialog.
Note: The total percentage displayed in the Percentage fields of all the configurations in the Enumerator generator should be equal to 100.

The Format section

You can add additional details about the format of the generated enumerator values for a selected configuration in the Format section of the Enumerator dialog. The following table provides the list of UI elements of the section with their description, default features, and actions that you can perform in the section to customize the configuration:

UI element Description Default feature Action
The Value fields You can add multiple editable fields and provide desired values. Displays three editable fields with RED, GREEN, and BLUE as the corresponding values. You can modify the default values to any other suitable enumerator values or add additional values.
The Distribution fields You can add multiple editable fields. The field determines the proportion of the entered values when you do not select the Random option. Editable when Random is not selected. Displays 20%, 30%, and 50% as default values. If you did not select the Random option, enter a number from 0 to 100 in the Distribution fields for all the values.
Note:
The total percentage of distribution corresponding to both the values must be equal to 100.
The Random option Determines if the enumerator values are randomly generated or not. The option is selected.
  • Do not perform any action if you want the enumerator values, when generated in the test data, to follow a random distribution.
  • Clear the Random option if you want the enumerator values to follow a fixed distribution and to be non-random.