Parameters of the Text generator

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

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

The following table provides the list of UI elements of the Text 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, Text. The name is not editable. NA
The Distribution field Determines if the texts 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 texts, when generated in the test data, to follow a random distribution.

  • Clear the Random option if you want the texts 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 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 words with a count of 10 and 70% to another configuration that contains words with a count of 5, then the text column of the generated data displays the values accordingly.

    The percentage for each configuration is automatically rebalanced preserving the allocation in the existing configurations, when you add a configuration subsequently.

The Duplicates field Determines if duplicate or unique texts are present in the generated data. Contains the Allowed option. The Allowed option is selected.
  • Do not perform any action if you want the generated texts to include duplicate entries.
  • Clear the Allowed option if you want to ensure unique texts with no duplicates. This will prevent any duplicate texts from appearing in the generated data.
The Blank percentage field Determines the frequency of blank texts 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 texts 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 texts 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 texts to be generated.

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

The Text type list Determines the desired text type for the generated texts. The Words option is selected. Select a specific text type from the list. The available options are as follows:
  • Words
  • Sentences
  • Paragraphs
The Count field Determines the count with respect to the selected text type. Displays 10. Edit the default count to enter the custom count of the selected text type.
The Add new configuration tab You can add additional text 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 Text type and Count lists 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 words with a count of 10, and another configuration for words with a count of 5. 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 Text generator is complete, you can use the Text generator as the base generator to create a new custom generator. NA

Click the Save to catalog icon .

You can 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 preview icon Image of the preview icon for each configuration of generator. The preview icon Image of the preview icon for each configuration of generator. is available for each configuration of a generator. NA Click the preview icon Image of the preview icon for each configuration of generator. to view the sample test data for the selected configuration of a generator.
The close icon NA NA Click the icon to exit the Text generator dialog.
Note: The total percentage displayed in the Percentage fields of all the configurations in the Text generator should be equal to 100.