The various sections of a Silk Performer load testing script must be declared using the following syntax:
- External functions contained in a dynamic link library that are called from a script must be declared using the keyword dll.
- Include statements in a script include one or more files during the compilation of a script. Declare include files with the
keyword use.
- Constants are defined using the keyword const. Wherever you can use an integer constant, a floating-point constant, a boolean constant or a string constant, you can likewise
use a named constant declared in this section. You do not need to specify the data type when declaring a constant.
- Variables are defined using the keyword var. Global variables have global scope and therefore can be used in every transaction and as bind or INTO variables in every
SQL command. You can also define variables with local scope for any transaction
- Parameters are variables, which are re-used by the visual script customization wizards. Parameters are (automatically) defined
using the keyword dclparam.
- Random variables are defined using the keyword dclrand.
- Functions used in a script are defined using the keyword dclfunc.
- Users to be simulated are defined using the keyword dcluser.
- Transactions executed by the users specified in the workload section of a script are defined using the keyword dcltrans.
- Web forms used in transactions in a script are defined using the keyword dclform.
- SQL commands that are called by transactions in a script are defined using the keyword dclsql.
- Handler functions are defined using the keyword dclevent.
- The code page with which a script was recorded is defined by the @codepage keyword.