Any parameters to be passed to and from a script must be defined as input and output parameters for the script.
Silk Test Workbench supports the following parameter types:
The parameter's value is either True or False.
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.
A 64-bit integer value that can have a value in the range -9223372036854775808 to 9223372036854775807.
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.
Public Module Main Dim _desktop As Desktop = Agent.Desktop Public Sub Main(args As IDictionary(Of String, Object)) Dim text As String = args.Item("inputParameterName") args.Item("outputParameterName") = "someValue" End Sub End Module
Output parameters must also be set as local variables in a visual test to pass the parameters to the visual test.