Returns the version number of the operating system.
sNumber = SYS_GetVersion ( )
Variable | Description |
---|---|
sNumber | The version number of the operating system. STRING. |
SYS_GetVersion returns a string that corresponds to the version number of the operating system under which the 4Test Agent is running. For example, for Microsoft Windows 8, SYS_GetVersion returns "6.2". The major version number of the operating system appears to the left of the decimal point, and the minor version number appears to the right.
SYS_GetVersion is executed by the Agent process, not the Silk Test Classic process. To affect the host process, use the function with the hHost notation or machine handle operator. For more information about the machine handle operator and hHost, see Machine handle operator.
STRING sName = SYS_GetName () STRING sVersion = SYS_GetVersion () Print ("System is using {sName} {sVersion}")