Inserting Random Values Into a Script

  1. In the menu bar, click Script > Create New Parameter . The Parameter Wizard - Create New Parameter dialog box appears.
  2. Select Parameter from Random Value.
  3. Click Next.
  4. In the wizard’s Choose the type of random variable window, choose a random variable type from the Random type list box. Use the type description and variable declaration preview provided for each random variable type to choose the required variable and specify its attributes.
  5. Click Next. The Name the variable and specify its attributes window appears.
  6. In the Name field, enter a name for the new constant value or accept the default name.
  7. Specify the attributes of the variable. These vary depending on the type of variable selected. Use the Back button to review the type description of the variable if necessary.
  8. Click Next. The Choose the kind of usage window appears.
  9. Specify how the variable is to be utilized.
    • Per usage: Each use of the random variable generates a new random value.
    • Per transaction: A new value is generated for each transaction call.
    • Per test: The value is the same for the entire test.
  10. Click Finish. The new random variable is then added to the random variables section of your script.

    If you opened the wizard via the context menu in your script, the value you selected will be automatically replaced with the newly created variable.

Launch the wizard as often as is required to create more randomized variables. If you launched the wizard via another method, replace the constant values in your script with the BDL variables you created.