FullName Property

Applies to TestComplete 15.40, last modified on July 05, 2022

Description

The OSInfo.FullName property returns the full name of the installed operating system. The full name includes the company name, the operating system name and the version of the installed service pack. For instance, Microsoft Windows XP Service Pack 3.

Declaration

OSInfoObj.FullName

Read-Only Property String
OSInfoObj An expression, variable or parameter that specifies a reference to an OSInfo object

Applies To

The property is applied to the following object:

Property Value

The string containing the full name of the operating system installed on the current computer.

Example

The following example posts the full name of the operating system to the test log:

JavaScript, JScript

function OSInfoSample()
{

  …
  // Obtains the full name of the operating system
  var Name = Sys.OSInfo.FullName;
  // Posts it to the test log
  Log.Message(Name);
  …

}

Python

def OSInfoSample():

  # ...
  # Obtains the full name of the operating system
  Name = Sys.OSInfo.FullName
  # Posts it to the test log
  Log.Message(Name)
  # ...

VBScript

Sub OSInfoSample

  …
  ' Obtains the full name of the operating system
  Name = Sys.OSInfo.FullName
  ' Posts it to the test log
  Log.Message Name
  …

End Sub

DelphiScript

procedure OSInfoSample();
var Name;
begin

  …
  // Obtains the full name of the operating system
  Name := Sys.OSInfo.FullName;
  // Posts it to the test log
  Log.Message(Name);
  …

end;

C++Script, C#Script

function OSInfoSample()
{

  …
  // Obtains the full name of the operating system
  var Name = Sys["OSInfo"]["FullName"];
  // Posts it to the test log
  Log["Message"](Name);
  …

}

See Also

Name Property
Edition Property
Windows64bit Property
Version Property
ServicePackVersion Property
MediaCenter Property
TabletPC Property

Highlight search results