This is a discussion on openSTA tips within the Testing Tools forums, part of the Software Quality Assurance category; SET Command This command allows a value to be assigned to an integer or character variable. The values may be ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| SET Command This command allows a value to be assigned to an integer or character variable. The values may be any integer or character values or a function reference, but their data types must match that of the variable. The values may be derived as a result of arithmetical operations. |
| Sponsored Links |
| |||
| WAIT Command This command suspends the Script execution for the specified time interval. The unit of the specified time interval is either seconds or milliseconds depending upon the value of the ENVIRONMENT statement WAIT UNIT. |
| |||
| ENVIRONMENT Section The purpose of the ENVIRONMENT section is to define attributes specific to the Script. The ENVIRONMENT section of an SCL Script is introduced by the mandatory ENVIRONMENT command. Only comments and whitespace may come before the ENVIRONMENT command in a Script source file. The ENVIRONMENT section is closed by the start of a DEFINITIONS(optional) or CODE section. |
| |||
| DEFINITIONS Section The DEFINITIONS section of an SCL Script is the part of the source code where the Scripts variables, timers, and constants used by the Script are defined. The section is optional and is specified by a DEFINITIONS command immediately after the ENVIRONMENT section. The DEFINITIONS section is ended by the start of the CODE section. |
| |||
| Broken and Useless SCL Features This section is here to document those features of SCL which are broken or just useless within OpenSTA. SCL is a relatively old language, it is much older than OpenSTA itself and with this it has inherited some baggage. Although OpenSTAs SCL is considerably different than the earlier SCLs (in implementation and features) it still shares a reasonable amount with its ancestors; some of these things don't make a whole lot of sense in OpenSTA or were just never finished properly. Within the ENVIRONMENT section there are a couple of little gotchas that technically work but don't seem to make any sense. The DESCRIPTION is mandatory, that is, if you delete it then your Script will not compile. You can provide an empty description string but you can't delete the command, this doesn't make much sense. The MODE HTTP could probably also be defaulted as OpenSTA scripts are always used for HTTP. The command and control characters played much more of a part in the previous generations of SCL. It was possible to change what these characters were and all commands were actually introduced by the command character. This fact means that the documentation and use of these characters is perhaps a little weird. The ability to pass data back from called sub-scripts is not present. Any variables used as parameters are not updated on return and the variable provided in the RETURNING clause seems to be cleared rather than updated. |
| |||
| Variable Options Additional attributes may be assigned to a variable using option clauses. Variable options follow the value definitions (if present), and are introduced by a comma. There are three types of option clause available: the first defines the scope of the variable; the second is used with variables with associated values, to define how random values are to be generated, if required; the third is used with variables that are defined as a parameter for the Script. |
| |||
| NEXT Command This command loads a variable with the next sequential value from a set of values. This could be either a list or a range associated with that variable, or from a file associated with the variable. |
| |||
| RESET Command This command resets the value pointer for a variable to the first value in the associated value set. This could be either a list or a range associated with that variable, or from a file associated with the variable. In the case of a repeatable random variable, the variable's seed may be reset to a specified or defaulted value. |
| |||
| LOCATE Integer Function This command is an Integer Function and can only be referenced within a SET command. It returns an integer value, corresponding to the offset of the specified substring in the source string. |
| |||
| Resize The Results Window 1. Move your cursor over part of the window edge. 2. Click and drag, then drop the border in the required position. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| openSTA and end of file character | cindrella | Software Testing | 0 | 02-29-2008 11:12 AM |