Skip to content

RandomizeTeststep

A Randomizeteststep contains a list of random values that store their values in variables. When you select a Randomizeteststep. you will see an empty editor, as in the screenshot below. A random value provider creates a Text/String based on a list of individual value sub elements from different data types. It is a powerful randomizing utility, and you may need to get used it. The fact that no coding is necessary may make this one of your favorite tools to randomize you requests.

Teststep list view

Commands

  • create new random value creates a new random value provider.
  • rename selected element
  • delete all selected elements
  • move up and move down has impact on the list order and on the order they are invoked for test runs. The order is intended to define which teststep needs the input of another teststep.
  • run value provider list regenerates new random values for all selected elements in the displayed order, or all elements, when no element is selected.

Copy and Paste

A context menu provides Pasteboard operations for:

  • cut
  • copy
  • paste
  • duplicate

RandomValueProviders

A RandomizeTeststep includes an (initially empty) list of RandomValueProviders

RandomizeTeststep random cxpression commands

When you need to provide several independent random values at a certain point in your teststep order, you would need a list of RandomValueProvider. depending on your underlying data type, you have to choose between:

  • Text: Creates an expression value with arbitrary characters in a specified length
  • Integer: Creates an expression value between a lower range and an upper range in a specified formatting
  • Double: Creates an expression value between a lower range and an upper range in a specified formatting
  • Date: Creates an expression value between a lower range and an upper range in a specified formatting
  • UUID: Creates a UUID
  • rename: opens a dialog to rename a selected element
  • delete: deletes the selection
  • move up: moves the selection up in the list
  • move down: moves the selection down in the list
  • enable: enables/disables the selection
  • run expressions: The RandomValueProvider returns a concatenation of the expressions from top to down as one result.

Text Randomvalue expression

n Use this type if you want to create a text with arbitrary characters that may occur in a fixed length value. (/storage/RandomizeTeststep-VariableTextExpression.png" alt="screenshot RandomizeTeststep variable text expression"/>

  • current random value displays the result of the random value generation.
  • text length defines, how long the text should be. Each character can be one of included characters.
  • This behaviour is applied, when you choose the value expression type variable random text

A text random value expression may be part of a list of expression. Part of this concatenated text may be a fix character string, e.g. the first three characters must be ABC screenshot RandomizeTeststep fix text expression


Integer RandomValueExpression

Use this, if you want to provide an integer random value between a lower and an upper range with or without formatting. screenshot RandomizeTeststep random integer expression Usage instructions

  • define the included lower range
  • define the excluded upper range
  • set the formatting for positive numbers
  • set the formatting for negative numbers. It might be the case that you want to return a negative number as its absolute value

Double RandomValueExpression

Use this, if you want to provide a random double value between a lower and an upper range with or without formatting. screenshot RandomizeTeststep random integer expression Usage instructions

  • define the included lower range
  • define the excluded upper range
  • set the formatting for positive numbers. This may include special characters as a currency indicator.
  • set the formatting for negative numbers.

Date RandomValueExpression

Use this, if you want to provide a random formatted date between a lower and an upper range with or without formatting. screenshot RandomizeTeststep random integer expression Usage instructions

  • set the first possible date
  • set the last possible date (excluded)
  • set the mandatory formatting.

UUID RandomValueExpression

Use this, if you need a unique identifier, e.g. to have a trace in your logging system.

VariableValueTransfer

Once you have set up the RandomValueProvider, you will need to reference a variable.