Parameters Section

Parameters used in load tests must be defined in the global section of Silk Performer test scripts. Generally, parameters are global variables that are re-used by visual customization wizards in Silk Performer and TrueLog Explorer. Parameters have global scope and global life span and therefore can be used in any transaction or function, as bind data, or in variables in SQL commands and Web forms.

Parameters used in scripts are defined using the keyword dclparam.

Syntax

ParamSection = "dclparam" VarDecl.

VarDecl     = TVar ";" { TVar ";" }.

TVar        = IdentList ":" (ExplicitSizedType | ImplicitSizedType).

ExplicitSizedType = [ "array" "[" number "]" "of" ] SimpleType.
// "[" [number] "]" is optional, but if not used, init is obligatory

SimpleType     = "number" [ "init" NumList ]
            | "float" [ "init" FloatList ]
            | "boolean" [ "init" BoolList ]
            | "string" [ "(" number ")" ]
                         [ "init" StringList ].

ImplicitSizedType = [ "array" "of" ] SimpleTypeInit).

SimpleTypeInit = "number" "init" NumList
            | "float" "init" FloatList
            | "boolean" "init" BoolList
            | "string" [ "(" number ")" ]
                         "init" StringList.

NumList     = signum { "," signum }.

FloatList   = float { "," float }.

BoolList    = boolean { "," boolean }.

StringList  = string { "," string }.