Boolean Generator

Applies to LoadComplete 4.97, last modified on May 20, 2019

The Boolean generator is used to generate boolean values with LoadComplete. Using this generator type, you can populate a list variable with various boolean values and then use this data in your tests.

To activate the Boolean generator, do the following:

  • In the Generate Values dialog, select Boolean from the Data Generator list.

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


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


Specifies the format of the boolean values to be generated. The available formats are:

  • True/False (default)
  • Yes/No
  • 1/0

Duplicate each value … time(s)

When enabled, specifies how many times each generated value will be duplicated.

To illustrate the effect of this parameter, let's suppose the generator produced an initial sequence 1 0 1 …. If you set this parameter to 1, each value in the sequence gets duplicated once so that the resulting sequence is 1 1 0 0 1 1 …. If you set this parameter to 2, each value is duplicated twice more and you get 1 1 1 0 0 0 1 1 1 …. And so on.

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 Using Data Generators.

See Also

Using Data Generators
Data Generators Reference
Generating Values
List Variables

Highlight search results