AppInfo.platformBuildID Property

Applies to TestComplete 15.63, last modified on April 23, 2024

Description

The platformBuildID property returns the build identifier of the platform (Gecko or XULRunner). This is typically a date identifier, that varies for every released version of an application.

Declaration

AppInfo.platformBuildID

Read-Only Property String

Applies To

The property is applied to the following object:

Property Value

A string that holds the application build identifier.

Example

The code below obtains the build identifier of the platform that corresponds to the firefox process and then posts this identifier to the test log.

JavaScript, JScript

function AppPlatformBuildId()
{
  // Launches the Firefox web browser and obtains the process
  Browsers.item(btFirefox).Run("about:blank");
  var firefox = Sys.Browser("firefox");
  // Obtains information about the application
  var AppInfo = firefox.AppInfo;
  
  // Obtains the platform's build identifier
  // and posts it to the test log
  var pId = AppInfo.platformBuildID;
  Log.Message("Platform's build identifier: " + pId);
}

Python

def AppPlatformBuildId():
  # Launches the Firefox web browser and obtains the process
  Browsers.item[btFirefox].Run("about:blank")
  firefox = Sys.Browser("firefox")
  # Obtains information about the application
  AppInfo = firefox.AppInfo
  
  # Obtains the platform"s build identifier
  # and posts it to the test log
  pId = AppInfo.platformBuildID
  Log.Message("Platform""s build identifier: " + pId)

VBScript

Sub AppPlatformBuildId
  ' Launches the Firefox web browser and obtains the process
  Browsers.item(btFirefox).Run("about:blank")
  Set firefox = Sys.Browser("firefox")
  ' Obtains information about the application
  Set AppInfo = firefox.AppInfo
  
  ' Obtains the platform's build identifier
  ' and posts it to the test log
  pId = AppInfo.platformBuildID
  Log.Message("Platform's build identifier: " & pId)
End Sub

DelphiScript

function AppPlatformBuildId;
var firefox, AppInfo, pId;
begin
  // Launches the Firefox web browser and obtains the process
  Browsers.item(btFirefox).Run('about:blank');
  firefox := Sys.Browser('firefox');
  // Obtains information about the application
  AppInfo := firefox.AppInfo;
  
  // Obtains the platform's build identifier
  // and posts it to the test log
  pId := AppInfo.platformBuildID;
  Log.Message('Platform''s build identifier: ' + pId);
end;

C++Script, C#Script

function AppPlatformBuildId()
{
  // Launches the Firefox web browser and obtains the process
  Browsers["item"](btFirefox)["Run"]("about:blank");
  var firefox = Sys["Browser"]("firefox");
  // Obtains information about the application
  var AppInfo = firefox["AppInfo"];
  
  // Obtains the platform's build identifier
  // and posts it to the test log
  var pId = AppInfo["platformBuildID"];
  Log["Message"]("Platform's build identifier: " + pId);
}

See Also

appBuildID Property

Highlight search results