Working With User-Defined Data Generators

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

Typically, you have to configure the desired generator each time you want to use it in your test. However, if you use the same settings in several variables or if you configure one generator in the same manner from time to time, it is recommended to create a user-defined generator that will be saved along with LoadComplete global settings and you can use it as in your test as any other generator.

Creating User-Defined Data Generators

To create a user-defined generator, do the following:

  1. Activate the desired generator. For more information on how to do this, see the generator’s description in the Data Generators Reference section.

  2. Configure the generator as you wish. These settings will be used for the user-defined generator.

  3. Click Save to User-Defined below the Sample field.

  4. Specify the desired name for the created generator in the subsequent dialog and click OK to close it.

  5. LoadComplete will automatically add the specified generator to the User-Defined category shown in the Data Generator list on the left. This generator will correspond to the standard generator with the settings specified before you clicked Save to User-Defined.

After you create a generator, you can use it as any other predefined generator and it will be available to any LoadComplete project that is opened on your machine.

Deleting User-Defined Generators

If you do not need the created generator anymore, do the following:

  1. Select the desired generator in the User-Defined category shown in the Data Generator list.
  2. Click Delete to the right of the generator name. This will remove the generator from the list of the available generators.
Note: The Delete button is unavailable for the standard (predefined) generators, so you cannot delete them.

Specifics of Using User-Defined Generators

When you create a user-defined generator, you should take into account the following. If you click Cancel in the Generate Data dialog, LoadComplete cancels all the actions you have made since the dialog was opened. In other words, if you created a user-defined generator, modified an existing one or deleted a generator from the list and clicked Cancel, LoadComplete will discard all the changes: the added generator will be removed, the changed generator will be rolled back to the previous state and the deleted generator will be restored.

See Also

Using Data Generators
Data Generators Reference

Highlight search results