AppInfo.appBuildID Property

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

Description

The appBuildID property returns the build identifier of the application as it is specified in the XUL application packaging. This is typically a date identifier, that varies for every released version of an application.

Declaration

AppInfo.appBuildID

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 unique build identifier of the application that corresponds to the firefox process and then posts this identifier to the test log.

JavaScript, JScript

function AppBuildId()
{
  // 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 application's build identifier
  // and posts it to the test log
  var aBuildID = AppInfo.appBuildID;
  Log.Message("Application identifier: " + aBuildID);
}

Python

def AppBuildId():
  # 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 application"s build identifier
  # and posts it to the test log
  aBuildID = AppInfo.appBuildID
  Log.Message("Application identifier: " + aBuildID)

VBScript

Sub AppBuildId
  ' 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 application's build identifier
  ' and posts it to the test log
  aBuildID = AppInfo.appBuildID
  Log.Message("Application identifier: " & aBuildID)
End Sub

DelphiScript

function AppBuildId;
var firefox, AppInfo, aBuildID;
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 application's build identifier
  // and posts it to the test log
  aBuildID := AppInfo.appBuildID;
  Log.Message('Application identifier: ' + aBuildID);
end;

C++Script, C#Script

function AppBuildId()
{
  // 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 application's build identifier
  // and posts it to the test log
  var aBuildID = AppInfo["appBuildID"];
  Log["Message"]("Application identifier: " + aBuildID);
}

See Also

platformBuildID Property

Highlight search results