Adding 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.

  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 the name of the parameter that you want to pass to the visual test.
    Valid characters for parameter names include uppercase and lowercase alphanumeric characters and the underscore ("ABC", "abc", "_"). If a parameter name being added or edited is a duplicate of another parameter name, supply a unique name for the parameter.
  3. From the Type list, select the data type of the local variable in the visual test for which you want to pass data.

    Silk Test Workbench supports the following parameter types:


    The parameter's value is either True or False.

    Number (Double)

    The parameter's value is a double-precision floating-point number, and is stored as a 64-bit number in the range -1.7E308 to +1.7E-307.

    Number (Long Long)

    A 64-bit integer value that can have a value in the range -9223372036854775808 to 9223372036854775807.

    Number (Long)

    The parameter's value is a number ranging from -2,147,483,648 to 2,147,483,647. Periods (for a fractional/decimal value) cannot be used.


    The parameter's value is a text string. Text type values can contain letters, numbers, spaces, and punctuation.

  4. Click OK.
    The output parameter displays in the list of output parameters in the Properties pane.