Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A data generator (DG) returns a generated on-the-fly random value assigned to a variable with the same name, which is used to parameterize requests. Depending on the DG type, the value can be random or systematic. DG can be used for creating streams of emulated business data of different types, which can be included in the HTTP load stream. It allows to more realistically mimic physical users interacting with a web application by entering real-world business data. It helps to avoid creating large test datasets manually.

A data generator type determines what random value will be returned: Integer, Double, Date/Time, GUID, or Text.

The following DG types are supported  

...

6. Click Verify to test the return value.

7. Click Save & Close.


Image RemovedImage Added


When the DG is used to parameterize a request, it is referred to by its name surrounded by the brackets, for example:  {{MyRndInteger}}.

...

Data generators can be used to create parameters base on expressions consisting of two constant substrings with a random value between them. In Concatenate Expression property, enter "{0}" surrounded by prefix and suffix substrings. 

For example, if a data generator Is configured to generate a random integer between 0-100, and its Concatenate Expression property Is set to id ="{0}", then such data generator will render values like id="72" or id ="31".

Image RemovedImage Added