SYS_GetName Function


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.

Windows Platforms

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.


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.