Real Generator

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

The Real generator is used to generate real numbers with LoadComplete. Using this generator type you can populate a list variable with various real numbers and then use this data in your tests.

To activate the Real generator, do the following:

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

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

Parameters

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

Generation mode

Generation mode - contains a drop-down list that allows you to specify a generation mode. The available modes are:

  • Random - Select this mode to generate random real number values within the specified range.

  • Sequential - Default. Select this mode to generate a sequence of values that will start from the value of the Minimum Value parameter. The sequence's increment value is specified by the Increment value parameter.

Minimum value

Specifies the lower bound of the real numbers to be generated. The default value of the parameter is -102.5.

Maximum value

Specifies the upper bound of the real numbers to be generated. The default value of the parameter is 102.5.

Note: The value of the Maximum value parameter must be greater than or equal to the value of the Minimum value parameter. Both parameters can be specified as an integer or as a real number.

Increment value

Specifies an increment value for the generated sequence. Note that if you want to generate a descending sequence, you should specify a negative value for this parameter. You can also specify a real number as the value of this parameter. The default value of the parameter is 2.5.

Note: This parameter is available only if you select the Sequential item in the Generation mode drop-down list.

Decimal places count

Specifies the number of decimal digits in the generated numbers. If you want to generate integer numbers only, you can either specify 0 as the value of this parameter or use the Integer data generator. The default value of the parameter is 3.

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

See Also

Data Generators Reference
Integer Generator
Using Data Generators
Generating Values
List Variables

Highlight search results