Using the Parameter Wizard

  1. Select an API node that reflects user data input (for example, select a CitrixKeyString node that specifies a keyboard datastring).
  2. Right-click the input datastring (shown as floating red text) and select Customize User Input from the context menu.
  3. The Parameter Wizard opens. Select Create new parameter and click Next.
  4. With the Parameter Wizard you can modify script values in one of two ways. You can either use an existing parameter that’s defined in the dclparam or dclrand section of your script, or you can create a new parameter (based on either a new constant value, a random variable, or values in a multi-column data file). Once you create a new parameter, that parameter is added to the existing parameters and becomes available for further customizations.
    Note: This task explains only the process of creating a parameter based on a new random variable.
  5. The Create New Parameter dialog appears. Select the Parameter from Random Variable radio button and click Next.
  6. The Random Variable Wizard appears. From the drop list, select the type of random variable (for example, Strings from file) you want to insert into your test script. A brief description of the highlighted variable type appears in the lower window.
  7. Click Next.
  8. The Name the variable and specify its attributes page appears. The Strings from file random variable type generates data strings that can either be selected randomly or sequentially from a specified file. Enter a name for the variable in the Name field. Specify whether the values should be called in Random or Sequential order. Then select a preconfigured datasource (for example, Elname which defines last names) from the File/Name drop list.
  9. Click Next.
  10. The Choose the kind of usage page appears. Specify whether the new random value should be used Per usage, Per transaction, or Per test.
  11. Click Finish to modify the BDL form declaration of your test script so that it uses the random variable for the given form field in place of the recorded value. The new random variable function appears below in BDL view.
  12. Initiate a TryScript run with the random variable function in your test script to confirm that the script runs without error.