Returns the name of the operating system on the target system where the 4Test Agent is running.
sName = SYS_GetName ( )
Variable | Description |
---|---|
sName | The name of the operating system. STRING. |
SYS_GetName 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 sName = SYS_GetName () Print ("Operating System: {sName}")
For example, if your operating system is Microsoft Windows 10, this code would print Operating System: Windows 10.