Customizing Citrix User-Input Data

Use the Parameter Wizard to make your test scripts more realistic by replacing static recorded input data with dynamic, parameterized data.

  1. Select a node in the menu tree that reflects user data input (for example, select a CitrixKeyString node that specifies a keyboard data string).
  2. Right-click the input data string (shown as floating red text) and choose Customize User Input.
  3. The Parameter Wizard opens. Select Create new parameter and click Next. With the Parameter Wizard, you can modify script values in either of the following ways:
    • Use an existing parameter that is defined in the dclparam or dclrand sections of your script.
    • Create a new parameter based on a new constant value, random variable, or values in a multi-column data file.
  4. The Create New Parameter dialog box opens. Select the Parameter from Random Variable option button and click Next.
  5. The Choose the kind of usage dialog box opens. Specify whether the new random value should be used Per usage, Per transaction, or Per test.
  6. 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 displays below in BDL view.
  7. Initiate a Try Script run with the random variable function in your test script to confirm that the script runs without error.