Scriptable variables can be created by writing .NET code. Once created, they are displayed in the Source Variable section of the workflow tree (a) and appear in the Variable Picker (b) alongside with other variables.
Scriptable variables are used similarly to other source variables such as extractors, datasets, functions and data generators. Once the scriptable variable is implemented, it can be used to parameterize requests the same way as other variables.
StresStimulus evaluates the scriptable variable before sending the request that has the parameter where the variable is used ("related request"). At this moment, your custom code is executed, the return value is assigned to the variable and is used to parameterize the request.
There are 2 modes of evaluation the scriptable variable: on request and on iteration:
There are two type of scriptable variables that are differs by the method they are created:
- No labels