Editing Script Input Parameters

Edit an input parameter in a script to reflect possible changes in the script or visual test that passes the parameter.

  1. In the Properties pane, right-click the input parameter that you want to edit and choose Edit <inputparametername>. The Edit Script Input Parameter dialog box opens.
  2. Type a name for the parameter into the Name field.
    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. Select a data type for the parameter from the Type list.

    Silk Test Workbench supports the following parameter types:

    Boolean

    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.

    Text

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

  4. Leave the Default Value text box empty.
    If left empty, the initial value of the parameter as set in the visual test is used. The value can be changed in a visual test or script if passed to a script. The value must be consistent with the type. For example, if the type is Number (Long), the initial value must be an integer.
  5. Click OK.