Name Generator

Applies to TestComplete 14.70, last modified on April 22, 2021

The Name generator is used to generate human names with TestComplete. Using this generator type you can populate the desired Excel file or TestComplete Table variable with various human names and then use this data in your tests. For more information on preparing test data, see Preparing Data for Data-Driven Testing.

To activate the Name generator, do any of the following:

  • Switch to the Data Generation Options page of the Data Generator wizard, select Name in the corresponding Data Generator cell. After that, click within the Parameters cell to activate the in-place editor and press the Edit button.

  • Open the Generate Data dialog and select Name from the Data Generator list.

  • Activate any user-defined generator based on the Name standard generator as it is described above.

Parameters

After you have selected the Name generator, you are offered to specify some additional parameters for the generated data. The parameters are:

Gender

Contains a drop-down list that allows you to specify the gender of the names to be generated. The available items are: Male, Female and Any. The default value of the parameter is Any.

Name kind

Contains a drop-down list that allows you to specify the type of the names to be generated. The available items are: First, Last and Full. The default value of the parameter is Full.

Duplicate each value … time(s)

Specifies how many times each generated value will be duplicated. The default value of the parameter is False.

After you specify the needed parameters, you can obtain the sample values that have been generated by the engine. The values are displayed in the Sample field.

Also, you can discard all the changes you made in the generator’s parameters and restore the parameters set by default. For this purpose, click Set Default Values below the Sample field.

If you are going to use the same settings in several variables or if you configure one generator in the same manner from time to time, it is much easier to save the selected generator with the specified parameter values as a user-defined generator. For this purpose, click the Save to User-Defined button below the Sample field.

For more information on generating test data, see Data Generator Wizard.

See Also

Data Generator Wizard
Data-Driven Testing
Preparing Data for Data-Driven Testing

Highlight search results