Using Script Data in the Visual Test

In this section of the lesson, you will modify the step that enters the age information to use the visual test local parameter containing the random number generated in the function_randomAge script.

  1. Select the step that enters data in the Age text box. The step text is as follows: Enter '42'
  2. In the Properties pane, select the Text property.
  3. Click the Select button, and then select Variable. The Select a Variable dialog box opens.
  4. Select VTrandomAge, and then click OK. The step text displays as:Enter '[VTrandomAge]'

This step will now enter the value of the VTrandomAge local variable in the Age text box.