Configuring Random Variables

With the Random Variable Wizard, you can configure random variables for entire input parameters or individual members of complex input parameters. You can also reuse existing random variables by using the Input Value Wizard.

To configure a random variable:

  1. On the Input Value Wizard, click the New random variable option button. Alternative: If you have already configured a random variable that you would like to apply, click the Use random variable option button.
  2. Alternative: If you have already configured a random variable that you would like to apply, perform the following:
    1. Click the Use random variable option button.
    2. Select the variable that you wish to apply from the list box.
    3. Click OK.
  3. Click OK. The Random Variable Wizard opens.
  4. From the Random type list box, select the type of random variable that you wish to insert to your script. A short type description and a variable declaration preview for each type is displayed.
    Note: Random variables always have global scope, and so are available to all test cases in your project.
  5. Click Next.
  6. In the Parameter pane, edit the existing valyues or insert new values. Weight numbers define the fraquency at which values are displayed. The weight numbers are more flexible than using percentages to define frequency.
  7. Click Finish.