Defining the Script Output Parameters

Scripts can receive data from a visual test in an input parameter, and, conversely, pass data to visual tests in an output parameter. In this task, you will define a parameter that passes the random number created in the function_randomAge script to the visual test.

  1. In the Properties pane, right-click and choose Add Output Parameter.
    The Add Script Output Parameter dialog box opens.
  2. In the Name text box, type TSrandomAge.
  3. From the Type list, select Number (Double).
  4. Leave the Default Value text box empty.
  5. Click OK.
    The output parameter displays in the list of output parameters in the Properties pane.

Define a local variable in the visual test to receive the output parameter.