System information methods
Obtaining system information, such as available memory or the operating system version, can be important when developing automations. For example, you might need to make sure the computer that you are interacting with has sufficient resources, the latest security updates, or the necessary functionality.
The following table describes the methods that are available for system information:
Methods
Method | Description |
GetAvailablePhysicalMemory | Retrieves the number of bytes of free physical memory that is available for the computer. |
GetAvailableVirtualMemory | Retrieves the number of bytes of free virtual address space that is available for the computer. |
GetOSBuild | Returns a string that contains the version of the operating system. For example, 17763.rs5_release.180914-1434. |
GetOSName | Returns a string that contains the name of the operating system. |
GetTotalPhysicalMemory | Retrieves the total amount of physical memory that is available for the computer. |
GetTotalVirtualMemory | Retrieves the total amount of virtual address space that is available for the computer. |
is64BitOS | The function returns True if the operating system is 64-bit. Otherwise, it returns False. |
GetLastBootupTime | Returns the last boot-up time for the drive. |
GetDriveInformation | Returns the drive information in the following format: /// </summary> /// <param name="drive">Drivename.</param> /// <param name="driveName">Returned drivename.</param> /// <param name="driveTotalSpace">Drive total space in GB.</param> /// <param name="driveAvailableSpace">Drive total available space in GB.</param> |
GetProgramFilesLocation | Returns the location of program files. |
GetSystemInformation | Returns system information in the following format: /// </summary> /// <param name="machineName">Machine name.</param> /// <param name="osVersion">OS Service package version.</param> /// <param name="osType">OS Type (32 / 64 bit).</param> /// <param name="processorCount">No. of processor.</param> /// <param name="systemMemory">System RAM in GB.</param> /// <param name="driveInfo">Drive information.</param> /// <param name="screenInfo">Monitor Information.</param> /// <param name="ipAddress">Local IP Address.</param> |
Previous topic Process methods Next topic Unit test components