Scenario Arguments
Overview
Script components operate on arguments. A scenario argument is some object whose value can be computed at any time during scenario execution at the request of the active component.
The calculation of the argument value is performed at the stage of script execution on the server when control is passed to the script component whose property defines this argument. The result of the calculation is substituted as the value of the corresponding component property.
Value types
The argument value can belong to one of the types:
-
Number (integer or decimal);
-
String;
-
Date/Time.
Type conversion
When the values of the arguments are matched, they are cast to the same type according to the following rule:
-
If the value types are the same, no conversion is performed.
-
If both values can be represented as numbers, a conversion to numbers is performed.
-
If both values cannot be represented as numbers, a conversion to a string is performed.