SYS_GetName Function

Action

Returns the name of the operating system on the target system where the 4Test Agent is running.

Syntax

sName = SYS_GetName ( )
Variable Description
sName The name of the operating system. STRING.

Notes

For this Operating System SYS_GetName Returns
Microsoft Windows 2000 Windows 2000
Microsoft Windows XP Windows XP
Microsoft Windows Server 2003 Windows 2003
Microsoft Windows Vista Windows Vista
Microsoft Windows Server 2008 Windows Server 2008
Microsoft Windows Server 2008 R2 Windows Server 2008 R2
Microsoft Windows 7 Windows 7
Microsoft Windows 8 Windows 8
Microsoft Windows Server 2012 Windows Server 2012
Microsoft Windows 8.1 Windows 8.1
Microsoft Windows Server 2012 R2 Windows Server 2012 R2
New or other OS UNKNOWN OS

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.

Example

STRING sName
sName = SYS_GetName ()
Print ("Operating System: {sName}")