Editing a Visual Test Parameter

  1. Open the visual test for which you want to create parameters.
  2. Click the <<Start>> step in the Task pane.
  3. In the Properties pane, navigate to the Variables category.
  4. Navigate to the parameter type that you want to edit:
    • If you want to edit an input parameter, navigate to Input parameters.
    • If you want to edit an output parameter, navigate to Output parameters.
  5. Select the parameter that you want to edit.
  6. Click Edit Parameter. The Edit Parameter dialog box opens.
  7. 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.
  8. 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)

    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.

    Number (Long Long)

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

    Text

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

    Enumeration

    This parameter groups together a set of values and orders them sequentially from 1 to n. Use this parameter type with properties or parameters that expect an enumeration data type.

    An enumeration stores the numeric value in a 64-bit integer in the range -9223372036854775808 to 9223372036854775807. However, the engine only supports 32-bit enumerations, while the UI supports 64-bit enumerations (in future releases, the engine will support 64-bit enumerations).

  9. In the Initial Value field, type the value for the parameter to be passed. If left empty, the initial value of the parameter as set in the visual test is used. The value must be consistent with the type. For example, if the type is Number (Long), the initial value must be an integer.
  10. Click OK.